CVS gjdoc/debian/scripts

Arnaud Vandyck avdyk@haydn.debian.org
Sat Nov 20 16:29:08 2004


Update of /cvsroot/pkg-java/gjdoc/debian/scripts
In directory haydn:/tmp/cvs-serv5660/scripts

Modified Files:
	gjdoc 
Log Message:
new release to fix problems in the gjdoc debian script

--- /cvsroot/pkg-java/gjdoc/debian/scripts/gjdoc	2004/11/18 21:50:49	1.2
+++ /cvsroot/pkg-java/gjdoc/debian/scripts/gjdoc	2004/11/20 23:28:48	1.3
@@ -2,22 +2,22 @@
 
 GJDOCCP=/usr/share/java/gjdoc.jar:/usr/share/java/gnujaxp.jar
 
-if [ -z $CLASSPATH ] ; then
-    CLASSPATH=$GJDOCCP
+if [ -z "$CLASSPATH" ] ; then
+    CLASSPATH="$GJDOCCP"
 else
-    CLASSPATH=$CLASSPATH:$GJDOCCP
+    CLASSPATH="$CLASSPATH:$GJDOCCP"
 fi
 
 if [ -z "$JAVACMD" ] ; then
-  if [ -n "$JAVA_HOME"  ] ; then
-      JAVACMD="$JAVA_HOME/bin/java"
+    if [ -n "$JAVA_HOME"  ] ; then
+        JAVACMD="$JAVA_HOME/bin/java"
+    else
+        JAVACMD="`which java 2> /dev/null`"
+        if [ -z "$JAVACMD" ] ; then
+            JAVACMD="/usr/bin/java"
+        fi
     fi
-  else
-    JAVACMD=`which java 2> /dev/null `
-    if [ -z "$JAVACMD" ] ; then
-        JAVACMD=kaffe
-    fi
-  fi
 fi
 
-LD_LIBRARY_PATH=/usr/lib/jni exec $JAVACMD -classpath $CLASSPATH gnu.classpath.tools.gjdoc.Main "$@" 
+LD_LIBRARY_PATH="/usr/lib/jni" exec "$JAVACMD" -classpath "$CLASSPATH" gnu.classpath.tools.gjdoc.Main "$@"
+