From 675d4e9bff8228da9f922305b4ad571b7c64c69f Mon Sep 17 00:00:00 2001 From: eudoxia Date: Sun, 22 Nov 2020 17:56:55 -0500 Subject: slight comment reformatting --- svgtex.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/svgtex.sh b/svgtex.sh index 1ce2b03..0e4b28f 100755 --- a/svgtex.sh +++ b/svgtex.sh @@ -1,7 +1,7 @@ #!/bin/sh set -e -# usage: echo "" | svgtex.sh +# usage: echo "" | svgtex.sh tmp=$(mktemp -p /tmp) @@ -23,7 +23,7 @@ echo "\\\end{document}" >> $tmp latex -interaction=batchmode $tmp -[ -f tmp.dvi ] || { echo "---- [FATAL] tex output failed ----" ; exit 1 ; } # make sure output exists before continuing +[ -f tmp.dvi ] || { echo "---- [FATAL] tex output failed ----" ; exit 1 ; } # make sure output exists before continuing echo "[ok] tex finished typesetting" @@ -31,8 +31,8 @@ dvisvgm tmp.dvi -f ttf -T S2 echo "[ok] conversion to svg" -mv tmp.svg $1 # final move to desired path +mv tmp.svg $1 # final move to desired path -rm tmp.aux tmp.log tmp.dvi $tmp # cleanup +rm tmp.aux tmp.log tmp.dvi $tmp # cleanup echo "---- build complete: $1 ----" -- cgit v1.2.3