summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-01-28 16:32:01 +0100
committerFlorian Pritz <bluewind@xinu.at>2016-01-28 16:32:01 +0100
commit09c0ef13c4c241ddf112f92344006ecc923679ed (patch)
tree2d8cc8a555c70b950df60845d925af75e75914f9
parentde141bcdd028ed58e6083c5641b1dea2d6d8eeee (diff)
downloadbin-09c0ef13c4c241ddf112f92344006ecc923679ed.tar.gz
bin-09c0ef13c4c241ddf112f92344006ecc923679ed.tar.xz
svg2pdf: Handle multiple files
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xsvg2pdf7
1 files changed, 4 insertions, 3 deletions
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