summaryrefslogtreecommitdiffstats
path: root/tools/jackpotc/bttf
blob: 4971c9160b05da1e3fcba6a0ba9feed02d6334b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
SRC="./test/oldgears/src/"
LIBS="./test/oldgears/lib/old/jogl.jar:./test/oldgears/lib/new/jogl.all.jar:./test/oldgears/lib/new/jogl.awt.jar"
OUTPUT="./test/oldgears/build"
FILESET=`find $SRC -type f -name "*.java"`

echo "Back to the Future"
echo "transforming files: $FILESET"
mkdir $OUTPUT
./lib/jackpotc -sourcepath $SRC -cp $LIBS -d $OUTPUT -Ajackpot30_extra_hints=./jogl1Tojogl2.hint $FILESET

echo "patching..."
patch -o ${OUTPUT}/Patched.java $FILESET ${OUTPUT}/META-INF/upgrade/upgrade.diff

echo "done"