From 66784521688f58d11e93e4615546a111630e471a Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Thu, 2 Jun 2011 16:22:53 +0000 Subject: git-svn-id: file:///home/svn/opt_utilities@205 ed2142bd-67ad-457f-ba7c-d818d4011675 --- model_doc/latex2svg.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/model_doc/latex2svg.sh b/model_doc/latex2svg.sh index 4a216a4..76260da 100755 --- a/model_doc/latex2svg.sh +++ b/model_doc/latex2svg.sh @@ -1,5 +1,15 @@ #!/bin/bash +if [ $# -eq 1 ] +then + : +else + echo $# + echo "Usage $0 " + exit +fi + + # you need gs-common, pstoedit and skencil to # get this script working export BASENAME="`basename $1 .tex`"; @@ -26,3 +36,4 @@ echo -e return "\"\c" >${BASENAME}.info cat ${BASENAME}.svg | sed -e ':a;N;$!ba;s/\n//g' -e 's/\"/\\\"/g' >>${BASENAME}.info echo \"\; >>${BASENAME}.info + -- cgit v1.2.2