freebsd-ports/java/jode/files/jode.in
Mikhail Teterin ea89cb4258 Fix a long-standing problem of the jode-script trying to use the wrong
getopt JAR. Bump PORTREVISION.

While here improve various bits a bit and add the regression-test target
using the bundled tests.
2015-01-15 23:28:09 +00:00

13 lines
403 B
Bash

#!/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 "$@"