X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/04fed8e4657d28df3ca947ea34c2a5d8f9ccc02f..61d7dd11d4a450a64f2817ee4db0ec7fa5880b42:/bin/old/umlet.sh?ds=inline diff --git a/bin/old/umlet.sh b/bin/old/umlet.sh new file mode 100755 index 0000000..e391a1f --- /dev/null +++ b/bin/old/umlet.sh @@ -0,0 +1,27 @@ +#!/bin/sh +# Shell script for running umlet from the command prompt in linux +# +# To install: +# 1. Define environment variable $UMLET_HOME in you shell +# initialization file, e.g. .bashrc +# UMLET_HOME=/path/to/umlet; +# export UMLET_HOME; +# (You can also execute these lines from the command prompt.) +# 2. Put this file (umlet.sh) on the $PATH, e.g. in your +# $HOME/bin/ directory. +# 3. Change the script to executable: +# $ chmod +x $HOME/bin/umlet.sh +# 4. Log out and log in. +# +# To use: +# Now you can use umlet from the command line from any directory. +# $ umlet.sh myDiagram.uxf + +currentDir=`pwd` +UMLET_HOME=/opt/UMLet +# uncomment this to be able to start umlet from anywhere (UMLET HOME has to be set) +cd $UMLET_HOME +if [ $# -gt 0 ] + then java -jar umlet.jar -filename="$currentDir/$1" + else java -jar umlet.jar +fi