From 09c0ef13c4c241ddf112f92344006ecc923679ed Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 28 Jan 2016 16:32:01 +0100 Subject: svg2pdf: Handle multiple files Signed-off-by: Florian Pritz --- svg2pdf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'svg2pdf') diff --git a/svg2pdf b/svg2pdf index 798e6a3..10c69b9 100755 --- a/svg2pdf +++ b/svg2pdf @@ -1,5 +1,6 @@ #!/bin/bash -b=${1%.svg} - -inkscape "$b.svg" -A "$b.pdf" --export-area-drawing --export-dpi=600 +for img in "$@"; do + b=${img%.svg} + inkscape "$b.svg" -A "$b.pdf" --export-area-drawing --export-dpi=600 +done -- cgit v1.2.3-24-g4f1b