diff options
author | astrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675> | 2011-06-02 16:22:53 +0000 |
---|---|---|
committer | astrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675> | 2011-06-02 16:22:53 +0000 |
commit | 66784521688f58d11e93e4615546a111630e471a (patch) | |
tree | 0aa75fea4a335ee5cb985f5a322f9dc33581b1ad | |
parent | f9cb256e35ae66ac63adfa9445a94e86ed18f2e0 (diff) | |
download | opt-utilities-66784521688f58d11e93e4615546a111630e471a.tar.bz2 |
git-svn-id: file:///home/svn/opt_utilities@205 ed2142bd-67ad-457f-ba7c-d818d4011675
-rwxr-xr-x | model_doc/latex2svg.sh | 11 |
1 files changed, 11 insertions, 0 deletions
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 <base name>" + 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 + |