diff options
| author | John Dilts | 2014-09-17 09:53:04 -0400 |
|---|---|---|
| committer | Brett Koonce | 2014-10-07 22:52:29 -0700 |
| commit | 07de3aae6c0c046c8ed81884dd2046b9b5275cd7 (patch) | |
| tree | 5b4588777726b086f58b1b1e94437ec79c24e704 /Library/Formula | |
| parent | 799934a1a00acc08fac3be87f784daaf39c377b4 (diff) | |
| download | homebrew-07de3aae6c0c046c8ed81884dd2046b9b5275cd7.tar.bz2 | |
solr: support for new bin/solr script
Closes #32364.
Signed-off-by: Brett Koonce <koonce@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/solr.rb | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/Library/Formula/solr.rb b/Library/Formula/solr.rb index 0e3ce2a07..93b1a3ef9 100644 --- a/Library/Formula/solr.rb +++ b/Library/Formula/solr.rb @@ -12,19 +12,11 @@ class Solr < Formula sha1 "82bc81371673e7e9e2cafae5d9914dd46ec64e84" => :lion end - def script; <<-EOS.undent - #!/bin/sh - if [ -z "$1" ]; then - echo "Usage: $ solr /absolute/path/to/config/dir" - else - cd #{libexec}/example && java -server $JAVA_OPTS -Dsolr.solr.home=$1 -jar start.jar - fi - EOS - end - def install libexec.install Dir["*"] - (bin+"solr").write script + bin.install "#{libexec}/bin/solr" + share.install "#{libexec}/bin/solr.in.sh" + prefix.install "#{libexec}/example" end def caveats; <<-EOS.undent |
