make two scripts co.all and compile, compile takes a compiler as param

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@354 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 41e66cbfa6
commit bbfb9bbbfb
  1. 19
      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

Loading…
Cancel
Save