2006-03-26 05:21:32 +02:00
|
|
|
source $stdenv/setup
|
|
|
|
|
2008-04-23 09:34:20 +02:00
|
|
|
tar zxvf $src
|
|
|
|
cd jasmin-*
|
2006-03-26 05:21:32 +02:00
|
|
|
|
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
|
|
|
|
|
2008-04-23 09:34:20 +02:00
|
|
|
ant jasmin-jar
|
2006-03-26 05:21:32 +02:00
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/jars/
|
2008-04-23 09:34:20 +02:00
|
|
|
mv lib/jasminclasses-foo.jar $out/jars/jasmin.jar
|