2023-01-20 10:41:00 +00:00
|
|
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
2020-04-24 23:36:52 +00:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
tar zxvf $src
|
|
|
|
cd antlr-*
|
|
|
|
cd lib
|
|
|
|
|
|
|
|
mkdir -p $out/lib/antlr
|
|
|
|
mkdir -p $out/bin
|
|
|
|
|
|
|
|
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
|