From 5fe4f67d2081fcaa22c5227914c4b69e57c76758 Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Mon, 5 Oct 2015 23:20:28 +0100 Subject: [PATCH] Update ANTLR script to 3.5.2 This is beneficial because 3.4 is broken under Java 8. It appears that the C library didn't change in 3.5 so the 3.4 tarball is still used for that part. --- scripts/{antlr34_install.sh => antlr35_install.sh} | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) rename scripts/{antlr34_install.sh => antlr35_install.sh} (79%) diff --git a/scripts/antlr34_install.sh b/scripts/antlr35_install.sh similarity index 79% rename from scripts/antlr34_install.sh rename to scripts/antlr35_install.sh index d614e90c..f7843d7d 100755 --- a/scripts/antlr34_install.sh +++ b/scripts/antlr35_install.sh @@ -1,7 +1,7 @@ #!/bin/sh -WORKDIR=~/antlr34.tmp -echo "This script will install antlr 3.4 (and matching libantlr) on your computer." +WORKDIR=~/antlr35.tmp +echo "This script will install antlr 3.5 (and matching libantlr) on your computer." read -p "Should the script create $WORKDIR and use it for building? [Y/n] " yn if [ "$yn" = "n" ]; then exit @@ -27,7 +27,7 @@ read -p "Should the script build libantlr3c for 64 bit? [Y/n] " yn if [ "$yn" != "n" ]; then ENABLE64BIT="--enable-64bit" fi -wget --no-check-certificate https://github.com/antlr/website-antlr3/raw/gh-pages/download/antlr-3.4-complete.jar +wget --no-check-certificate https://github.com/antlr/website-antlr3/raw/gh-pages/download/antlr-3.5.2-complete.jar wget --no-check-certificate https://github.com/antlr/website-antlr3/raw/gh-pages/download/C/libantlr3c-3.4.tar.gz tar xzf libantlr3c-3.4.tar.gz cd libantlr3c-3.4 @@ -35,10 +35,10 @@ cd libantlr3c-3.4 cd $WORKDIR sudo mkdir -p "$PREFIX/share/java" -sudo install antlr-3.4-complete.jar "$PREFIX/share/java" +sudo install antlr-3.5.2-complete.jar "$PREFIX/share/java" printf "#!/bin/sh export CLASSPATH -CLASSPATH=\$CLASSPATH:$PREFIX/share/java/antlr-3.4-complete.jar:$PREFIX/share/java +CLASSPATH=\$CLASSPATH:$PREFIX/share/java/antlr-3.5.2-complete.jar:$PREFIX/share/java /usr/bin/java org.antlr.Tool \$* " > antlr3 sudo install --mode=755 antlr3 "$PREFIX/bin"