mirror of https://github.com/dspinellis/UMLGraph
Make umlgraph shell script work under Cygwin
This commit is contained in:
parent
ee82a7fd20
commit
93e69a4e24
|
|
@ -1,4 +1,4 @@
|
|||
/* Automatically generated file */
|
||||
package org.umlgraph.doclet;
|
||||
class Version { public static String VERSION = "R5_7_2-1-g9039a0";}
|
||||
class Version { public static String VERSION = "R5_7_2-3-gee82a7";}
|
||||
|
||||
9
umlgraph
9
umlgraph
|
|
@ -8,6 +8,13 @@
|
|||
|
||||
UMLGRAPH_HOME=lib
|
||||
|
||||
# Obtain a classpath path separator that works for Unix and Cygwin
|
||||
if expr "$JAVA_HOME" : '.*:' >/dev/null ; then
|
||||
CPS=';'
|
||||
else
|
||||
CPS=':'
|
||||
fi
|
||||
|
||||
if [ x$2 = x ]
|
||||
then
|
||||
echo usage: umlgraph base_file_name filetype [umlgraph arguments] 1>&2
|
||||
|
|
@ -18,7 +25,7 @@ else
|
|||
BASE=$1
|
||||
FILETYPE=$2
|
||||
shift 2
|
||||
java -classpath "$UMLGRAPH_HOME/UmlGraph.jar:$JAVA_HOME/lib/tools.jar" \
|
||||
java -classpath "$UMLGRAPH_HOME/UmlGraph.jar${CPS}$JAVA_HOME/lib/tools.jar" \
|
||||
org.umlgraph.doclet.UmlGraph -package $* -output - $BASE.java |
|
||||
dot -T$FILETYPE -o$BASE.$FILETYPE
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue