aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2011-06-02 16:22:53 +0000
committerastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2011-06-02 16:22:53 +0000
commit66784521688f58d11e93e4615546a111630e471a (patch)
tree0aa75fea4a335ee5cb985f5a322f9dc33581b1ad
parentf9cb256e35ae66ac63adfa9445a94e86ed18f2e0 (diff)
downloadopt-utilities-66784521688f58d11e93e4615546a111630e471a.tar.bz2
git-svn-id: file:///home/svn/opt_utilities@205 ed2142bd-67ad-457f-ba7c-d818d4011675
-rwxr-xr-xmodel_doc/latex2svg.sh11
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
+