From f0190137c40206478075d5d5c6e2d8217a67c614 Mon Sep 17 00:00:00 2001 From: Christoph Hösler Date: Mon, 19 May 2014 18:57:37 +0200 Subject: antlr: add grun script The quick start guide on the antlr website (http://www.antlr.org/) uses a TestRig class inside the antlr jar which the authors aliased as grun. This alias will get installed as a wrapper script. Closes #29392. Signed-off-by: Adam Vandenberg --- Library/Formula/antlr.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/antlr.rb b/Library/Formula/antlr.rb index 89b1a009f..aef81290c 100644 --- a/Library/Formula/antlr.rb +++ b/Library/Formula/antlr.rb @@ -8,5 +8,9 @@ class Antlr < Formula def install prefix.install "antlr-#{version}-complete.jar" bin.write_jar_script prefix/"antlr-#{version}-complete.jar", "antlr4" + (bin+"grun").write <<-EOS.undent + #!/bin/bash + java -classpath #{prefix}/antlr-#{version}-complete.jar:. org.antlr.v4.runtime.misc.TestRig "$@" + EOS end end -- cgit v1.2.3