summaryrefslogtreecommitdiffstats
path: root/java/jode/files/patch-bin-jode
blob: c77c812475d438d701072820ca73aa0e1d3e3d2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- bin/jode.in	Mon Oct  2 09:08:36 2000
+++ bin/jode.in	Tue Jun 24 16:13:17 2003
@@ -1,4 +1,3 @@
 #!@SHELL@
-prefix=@prefix@
 
 case $1 in
@@ -9,6 +8,7 @@
 esac
   
+# This will only set CP if CLASSPATH is non-empty:
+CP=`echo $CLASSPATH | sed -e 's/:/,/g' -e 's/..*/--classpath &/'`
 
-CP=`echo $CLASSPATH | sed s/:/,/`
-CLASSPATH=@datadir@/jode-@VERSION@.jar:@CLASSPATH@ \
-@JAVA@ $CLAZZ --classpath $CP $*
+exec javavm -cp @datadir@/jode-@VERSION@.jar:@datadir@/getopt.jar \
+	$CLAZZ $CP "$@"
OpenPOWER on IntegriCloud