summaryrefslogtreecommitdiff
path: root/cmake/elfinfo/grun.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/elfinfo/grun.sh')
-rwxr-xr-xcmake/elfinfo/grun.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/cmake/elfinfo/grun.sh b/cmake/elfinfo/grun.sh
new file mode 100755
index 0000000..ccd4743
--- /dev/null
+++ b/cmake/elfinfo/grun.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+url="http://repo1.maven.org/maven2/org/antlr/antlr4/4.5.3/antlr4-4.5.3.jar"
+jar="$(basename $url)"
+
+if [[ ! -r "$jar" ]]
+then
+ wget "$url"
+fi
+
+CLASSPATH="$CLASSPATH:$jar"
+CLASSPATH="$CLASSPATH:target/classes"
+export CLASSPATH
+exec java org.antlr.v4.gui.TestRig "$@"