1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/java/jode/files/patch-bin-jode
Mikhail Teterin 61c93d2ba2 DE is a java package containing a decompiler and an optimizer for
java. Can be used from command line or through the Swing-based GUI.
2003-06-24 20:34:03 +00:00

19 lines
497 B
Plaintext

--- 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 "$@"