nixpkgs-suyu/pkgs/development/tools/parsing/antlr/builder2.sh
Martin Bravenboer 1cb5a30f34 Added ANTLR 2.7.6
svn path=/nixpkgs/trunk/; revision=6082
2006-08-09 15:09:50 +00:00

16 lines
265 B
Bash

source $stdenv/setup
tar zxvf $src
cd antlr-*
ensureDir $out/bin
ensureDir $out/lib/$name
cp antlr.jar $out/lib/$name
cat > $out/bin/antlr <<EOF
#! $SHELL
$jre/bin/java -cp $out/lib/$name/antlr.jar -Xms200M -Xmx400M antlr.Tool \$*
EOF
chmod u+x $out/bin/antlr