1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 16:42:09 +00:00
nixpkgs/pkgs/development/compilers/abc/jasmin/builder.sh
Eelco Dolstra c556a6ea46 * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless
function, so obsolete it.

svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
2012-01-18 20:16:00 +00:00

25 lines
439 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
mkdir -p $out/jars/
mv lib/jasminclasses-foo.jar $out/jars/jasmin.jar