2006-08-03 18:08:25 +02:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
tar zxvf $src
|
|
|
|
cd antlr-*
|
|
|
|
cd lib
|
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/lib/antlr
|
|
|
|
mkdir -p $out/bin
|
2006-08-03 18:08:25 +02:00
|
|
|
|
|
|
|
cp *.jar $out/lib/antlr
|
|
|
|
|
|
|
|
classpath=""
|
|
|
|
for jar in $out/lib/antlr/*.jar; do
|
|
|
|
classpath="$classpath:$jar"
|
|
|
|
done
|
|
|
|
|
|
|
|
cat > $out/bin/antlr <<EOF
|
|
|
|
#! $SHELL
|
|
|
|
|
|
|
|
$jre/bin/java -cp $classpath -Xms200M -Xmx400M org.antlr.Tool \$*
|
|
|
|
EOF
|
|
|
|
|
|
|
|
chmod u+x $out/bin/antlr
|