diff options
| author | Christoph HoĢsler | 2014-05-19 18:57:37 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2014-05-19 17:39:20 -0700 |
| commit | f0190137c40206478075d5d5c6e2d8217a67c614 (patch) | |
| tree | 93c3925f4f51853ae33b9cc7bfd1be2ec6a25ed1 /Library/Formula/antlr.rb | |
| parent | 27dc9dba2535338d7ce3a0e6477731a5ce8339e0 (diff) | |
| download | homebrew-f0190137c40206478075d5d5c6e2d8217a67c614.tar.bz2 | |
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 <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/antlr.rb')
| -rw-r--r-- | Library/Formula/antlr.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
