mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
c556a6ea46
function, so obsolete it. svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
24 lines
342 B
Bash
24 lines
342 B
Bash
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
|