nixpkgs/pkgs/development/compilers/abc/jasmin/builder.sh
Eelco Dolstra 09ab596e0f * Remove calls to fail().
svn path=/nixpkgs/branches/stdenv-updates/; revision=11690
2008-04-23 07:34:20 +00:00

24 lines
440 B
Bash

source $stdenv/setup
tar zxvf $src
cd jasmin-*
sed -e 's/<javac/<javac source="1.4"/' build.xml > build-tmp.xml
mv build-tmp.xml build.xml
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
build.compiler=javac1.4
EOF
ant jasmin-jar
ensureDir $out/jars/
mv lib/jasminclasses-foo.jar $out/jars/jasmin.jar