summaryrefslogtreecommitdiff
path: root/LaTeX/argo/argouml.sh
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-06-21 19:55:49 +0000
committerPaul Buetow <paul@buetow.org>2008-06-21 19:55:49 +0000
commitc7f8bed4567d03bbbc7b954bb7a5abf611fd80dc (patch)
treeffbc316414e605abcbac24d4f4b5bda4271c33d7 /LaTeX/argo/argouml.sh
parentb89e7b8d19caae2699a87359833596dae3d1a3c7 (diff)
argo
Diffstat (limited to 'LaTeX/argo/argouml.sh')
-rwxr-xr-xLaTeX/argo/argouml.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/LaTeX/argo/argouml.sh b/LaTeX/argo/argouml.sh
new file mode 100755
index 0000000..0188e69
--- /dev/null
+++ b/LaTeX/argo/argouml.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# Shell script to launch ArgoUML on Unix systems. Mostly borrowed from
+# the Apache Ant project.
+#
+# The idea is that you can put a softlink in your "bin" directory back
+# to this file in the ArgoUML install directory and this script will
+# use the link to find the jars that it needs, e.g.:
+#
+# ln -s /usr/local/ArgoUML/argouml.sh /usr/local/bin/argo
+#
+# 2002-02-25 toby@caboteria.org
+
+## resolve links - $0 may be a link to ArgoUML's home
+PRG=$0
+progname=`basename $0`
+
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '.*/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG="`dirname $PRG`/$link"
+ fi
+done
+
+java -jar `dirname $PRG`/argouml.jar "$@"
+