git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1028 379699f6-c40d-0410-875b-85095c16579estable
parent
5c969865db
commit
6ed9922879
@ -1,32 +1,40 @@ |
|||||||
#!/bin/sh |
#!/bin/sh |
||||||
|
|
||||||
if [ ! -e GlobalOptions.java ]; then |
OLDDIR=`pwd` |
||||||
echo "Please cd to the jode directory first." |
TIME=`date +"%Y%m%d %H:%M"` |
||||||
exit 1 |
if [ "${1#-D}" != "$1" ] ; then |
||||||
|
TIME=`date +"%Y%m%d %H:%M" --date="${1#-D}"` |
||||||
|
shift; |
||||||
fi |
fi |
||||||
|
DATE=`echo $TIME | cut -c0-8` |
||||||
|
echo $TIME |
||||||
|
echo $DATE |
||||||
|
|
||||||
DATE=`date +"%Y%m%d"` |
TEMP=`mktemp -d $HOME/tmp.XXXXXX` |
||||||
perl -i -pe's/(snapshot )[0-9]+/${1}'$DATE'/ |
|
||||||
|
trap "cd $OLDDIR; rm -rf $TEMP" EXIT |
||||||
|
cd $TEMP |
||||||
|
|
||||||
|
CLASSPATH=$TEMP:/usr/local/swing-1.1/swing.jar |
||||||
|
export CLASSPATH |
||||||
|
|
||||||
|
cvs export -D"$TIME" jode |
||||||
|
cd jode |
||||||
|
perl -i -pe's/(snapshot )[0-9]+/${1}'"$TIME"'/ |
||||||
if /public final static String version/;' GlobalOptions.java |
if /public final static String version/;' GlobalOptions.java |
||||||
|
|
||||||
./ci.all |
COMPILER=${1:-jikes} |
||||||
echo '#!/bin/sh' > co.all |
if [ -z "$1" ]; then |
||||||
echo co -u jcpp make* COPYING *.html *.java */*.java */*.j >> co.all |
FLAGS="-g" |
||||||
chmod a+x co.all |
else |
||||||
|
shift |
||||||
|
FLAGS="$*" |
||||||
|
fi |
||||||
|
|
||||||
echo '#!/bin/sh' > compile |
# jasmin -d .. jvm/Interpreter.j |
||||||
echo 'COMPILER=${1:-javac}' >> compile |
|
||||||
echo 'if [ -z "$1" ]; then FLAGS="-g"; else shift; FLAGS="$*"; fi' >>compile |
|
||||||
echo 'rm -f *.class */*.class' >> compile |
|
||||||
echo 'jasmin -d .. jvm/Interpreter.j' >> compile |
|
||||||
echo \$COMPILER \$FLAGS -d .. Decompiler.java obfuscator/Main.java JodeApplet.java swingui/Main.java >> compile |
|
||||||
chmod a+x compile |
|
||||||
./compile jikes -g |
|
||||||
|
|
||||||
cd .. |
eval $COMPILER $FLAGS -d .. \ |
||||||
tar -cvzf jode/snapshot/jode-RCS-$DATE.tar.gz \ |
Decompiler.java obfuscator/Main.java JodeApplet.java swingui/Main.java |
||||||
jode/co.all jode/compile jode/RCS jode/*/RCS |
|
||||||
|
|
||||||
zip jode/snapshot/jode-$DATE.zip \ |
cd .. |
||||||
jode/COPYING jode/*.html jode/jcpp \ |
zip $HOME/jode-$DATE.zip jode |
||||||
jode/*.java jode/*/*.java jode/*/*.j jode/*.class jode/*/*.class |
|
||||||
|
Loading…
Reference in new issue