From d49e59a3ef254b9d892d576b73e6d8c28dd82f56 Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 8 Jul 1999 14:58:34 +0000 Subject: [PATCH] added bin subdirectory git-svn-id: https://svn.code.sf.net/p/jode/code/branches/stable@1058 379699f6-c40d-0410-875b-85095c16579e --- jode/bin/.cvsignore | 2 ++ jode/bin/Makefile.am | 4 ++++ jode/bin/jode.in | 14 ++++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 jode/bin/.cvsignore create mode 100644 jode/bin/Makefile.am create mode 100644 jode/bin/jode.in diff --git a/jode/bin/.cvsignore b/jode/bin/.cvsignore new file mode 100644 index 0000000..282522d --- /dev/null +++ b/jode/bin/.cvsignore @@ -0,0 +1,2 @@ +Makefile +Makefile.in diff --git a/jode/bin/Makefile.am b/jode/bin/Makefile.am new file mode 100644 index 0000000..da0c744 --- /dev/null +++ b/jode/bin/Makefile.am @@ -0,0 +1,4 @@ +## Input file for automake to generate the Makefile.in used by configure + +bin_SCRIPTS = jode + diff --git a/jode/bin/jode.in b/jode/bin/jode.in new file mode 100644 index 0000000..75bad3b --- /dev/null +++ b/jode/bin/jode.in @@ -0,0 +1,14 @@ +#!@SHELL@ +prefix=@prefix@ + +case $1 in + [Ss]wi*) CLAZZ=jode.swingui.Main; shift ;; + [Dd]ec*) CLAZZ=jode.Decompiler; shift ;; + [Oo]bf*) CLAZZ=jode.obfuscator.Main; shift ;; + *) CLAZZ=jode.Decompiler ;; +esac + + +CP=`echo $CLASSPATH | sed s/:/,/` +CLASSPATH=@datadir@/jode-@VERSION@.jar:@CLASSPATH@ \ +@JAVA@ $CLAZZ --classpath $CP $*