blob: ba384702fe239dd9d23461f4da6d70545c1f2397 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/bash
PROJECT="./test/oldgears"
SRC="$PROJECT/src"
GENSRC="$PROJECT/gensrc"
LIBS="$PROJECT/lib/old/jogl.jar:$PROJECT/lib/new/jogl.all.jar:$PROJECT/lib/new/jogl.awt.jar"
OUTPUT="$PROJECT/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..."
mkdir "$GENSRC"
mkdir "$GENSRC/jogl2/"
mkdir "$GENSRC/jogl2/gears/"
patch -o $GENSRC/jogl2/gears/Gears.java $FILESET ${OUTPUT}/META-INF/upgrade/upgrade.diff
echo "done"
|