2006-03-25 19:21:32 -08:00
|
|
|
source $stdenv/setup
|
|
|
|
|
2008-04-23 00:34:20 -07:00
|
|
|
tar zxvf $src
|
|
|
|
cd jasmin-*
|
2006-03-25 19:21:32 -08:00
|
|
|
|
2006-08-02 10:27:42 -07:00
|
|
|
sed -e 's/<javac/<javac source="1.4"/' build.xml > build-tmp.xml
|
|
|
|
mv build-tmp.xml build.xml
|
|
|
|
|
2006-03-25 19:21:32 -08: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 10:27:42 -07:00
|
|
|
|
|
|
|
build.compiler=javac1.4
|
2006-03-25 19:21:32 -08:00
|
|
|
EOF
|
|
|
|
|
2008-04-23 00:34:20 -07:00
|
|
|
ant jasmin-jar
|
2006-03-25 19:21:32 -08:00
|
|
|
|
2012-01-18 12:16:00 -08:00
|
|
|
mkdir -p $out/jars/
|
2008-04-23 00:34:20 -07:00
|
|
|
mv lib/jasminclasses-foo.jar $out/jars/jasmin.jar
|