2006-03-26 05:21:32 +02:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
tar zxvf $src || fail
|
|
|
|
cd jasmin-* || fail
|
|
|
|
|
2006-08-02 19:27:42 +02:00
|
|
|
sed -e 's/<javac/<javac source="1.4"/' build.xml > build-tmp.xml
|
|
|
|
mv build-tmp.xml build.xml
|
|
|
|
|
2006-03-26 05:21:32 +02:00
|
|
|
cat > ant.settings <<EOF
|
|
|
|
java_cup.jar=$javaCup
|
|
|
|
|
|
|
|
# Location in which to generate Jasmin release tarballs
|
|
|
|
release.loc=lib
|
|
|
|
|
|
|
|
# Version of Jasmin for tagging tarballs
|
|
|
|
jasmin.version=foo
|
2006-08-02 19:27:42 +02:00
|
|
|
|
|
|
|
build.compiler=javac1.4
|
2006-03-26 05:21:32 +02:00
|
|
|
EOF
|
|
|
|
|
2006-08-02 19:27:42 +02:00
|
|
|
ant jasmin-jar || fail
|
2006-03-26 05:21:32 +02:00
|
|
|
|
|
|
|
ensureDir $out/jars/ || fail
|
|
|
|
mv lib/jasminclasses-foo.jar $out/jars/jasmin.jar || fail
|