diff --git a/jode/maketar b/jode/maketar index 3b0d727..ad03747 100755 --- a/jode/maketar +++ b/jode/maketar @@ -1,12 +1,15 @@ #!/bin/sh - echo '#!/bin/sh' > co.all -echo co -u COPYING jode-applet.html *.java */*.java >> co.all -echo javac -d \$HOME/java -g Decompiler.java >> co.all -echo javac -d \$HOME/java -g Obfuscator.java >> co.all -echo javac -d \$HOME/java -g JodeApplet.java >> co.all -echo javac -d \$HOME/java -g JodeWindow.java >> co.all -echo javac -d \$HOME/java -g JodeAppletOneZero.java >> co.all +echo co -u COPYING *.html *.java */*.java >> co.all +echo ./compile >> co.all +chmod a+x co.all + +echo '#!/bin/sh' > compile +echo 'COMPILER=${1:-javac}' >> compile +echo 'if [ -n "$1" ]; then FLAGS="-g"; else shift; FLAGS="$*"; fi' >>compile +echo 'rm -f *.class */*.class' >> compile +echo \$COMPILER -d \$HOME/java \$FLAGS Decompiler.java Obfuscator.java JodeApplet.java swingui/MainWindow.java >> compile +chmod a+x compile cd .. -tar -cvzf jode.tar.gz jode/co.all jode/RCS jode/*/RCS +tar -cvzf jode/jode.tar.gz jode/co.all jode/compile jode/RCS jode/*/RCS