summaryrefslogtreecommitdiff
path: root/java/jode/files/jode.in
diff options
context:
space:
mode:
Diffstat (limited to 'java/jode/files/jode.in')
-rw-r--r--java/jode/files/jode.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/java/jode/files/jode.in b/java/jode/files/jode.in
new file mode 100644
index 000000000000..ed621457ea86
--- /dev/null
+++ b/java/jode/files/jode.in
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+case $1 in
+ [Ss]wi*) CLAZZ=jode.swingui.Main; shift ;;
+ [Dd]ec*) CLAZZ=jode.decompiler.Main; shift ;;
+ [Oo]bf*) CLAZZ=jode.obfuscator.Main; shift ;;
+ *) CLAZZ=jode.decompiler.Main ;;
+esac
+
+# This will only set CP if CLASSPATH is non-empty:
+CP=`echo $CLASSPATH | sed -e 's/:/,/g' -e 's/..*/--classpath &/'`
+
+exec java -cp %%JAVAJARDIR%%/jode-1.1.2-pre1.jar:%%GETOPT_JAR%% $CLAZZ $CP "$@"