]> git.rmz.io Git - dotfiles.git/blob - bin/old/umlet.sh
merge bin from shada
[dotfiles.git] / bin / old / umlet.sh
1 #!/bin/sh
2 # Shell script for running umlet from the command prompt in linux
3 #
4 # To install:
5 # 1. Define environment variable $UMLET_HOME in you shell
6 # initialization file, e.g. .bashrc
7 # UMLET_HOME=/path/to/umlet;
8 # export UMLET_HOME;
9 # (You can also execute these lines from the command prompt.)
10 # 2. Put this file (umlet.sh) on the $PATH, e.g. in your
11 # $HOME/bin/ directory.
12 # 3. Change the script to executable:
13 # $ chmod +x $HOME/bin/umlet.sh
14 # 4. Log out and log in.
15 #
16 # To use:
17 # Now you can use umlet from the command line from any directory.
18 # $ umlet.sh myDiagram.uxf
19
20 currentDir=`pwd`
21 UMLET_HOME=/opt/UMLet
22 # uncomment this to be able to start umlet from anywhere (UMLET HOME has to be set)
23 cd $UMLET_HOME
24 if [ $# -gt 0 ]
25 then java -jar umlet.jar -filename="$currentDir/$1"
26 else java -jar umlet.jar
27 fi