biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / parsing / antlr / builder.sh
blobc1d20845e6bff70af4027f8faed865c4f5d04dc0
1 if [ -e "$NIX_ATTRS_SH_FILE" ]; then . "$NIX_ATTRS_SH_FILE"; elif [ -f .attrs.sh ]; then . .attrs.sh; fi
2 source $stdenv/setup
4 tar zxvf $src
5 cd antlr-*
6 cd lib
8 mkdir -p $out/lib/antlr
9 mkdir -p $out/bin
11 cp *.jar $out/lib/antlr
13 classpath=""
14 for jar in $out/lib/antlr/*.jar; do
15 classpath="$classpath:$jar"
16 done
18 cat > $out/bin/antlr <<EOF
19 #! $SHELL
21 $jre/bin/java -cp $classpath -Xms200M -Xmx400M org.antlr.Tool \$*
22 EOF
24 chmod u+x $out/bin/antlr