Fix pdftoipe
authorLukas Barth <lukas.barth@kit.edu>
Thu, 15 Aug 2019 12:42:31 +0000 (14:42 +0200)
committerLukas Barth <lukas.barth@kit.edu>
Thu, 15 Aug 2019 12:42:31 +0000 (14:42 +0200)
tools/pdftoipe.sh

index 5dc732b975c421d1703a7dc66af5f52bed18d49c..ac9a281073bfa18d8f9d18a006064212c13122f1 100755 (executable)
@@ -1,5 +1,10 @@
 # !/bin/bash
 echo $1
-inkscape --verb=ObjectToPath --select=EditSelectAll --export-plain-svg=/tmp/$1.svg $1
-./svgtoipe.py /tmp/$1.svg $2
-rm /tmp/$1.svg
+
+TMPFILE=`mktemp`
+TMPFILE="${TMPFILE}.svg"
+
+inkscape --verb=EditSelectAll --verb=ObjectToPath --export-plain-svg=$TMPFILE $1
+./svgtoipe.py $TMPFILE $2
+#rm $TMPFILE
+