diff options
| author | Adam Vandenberg | 2012-08-07 11:20:52 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-10-27 19:28:49 -0700 |
| commit | ce2f7e1bd664e7260e48ffa37bf3fc909232a555 (patch) | |
| tree | 1a9b07793f59951405a7ee7dbc15a1cf5145229e /Library/Formula/voldemort.rb | |
| parent | b40e5323ca055bf890406b634c97fccef49d9c68 (diff) | |
| download | homebrew-ce2f7e1bd664e7260e48ffa37bf3fc909232a555.tar.bz2 | |
Use script helpers
Diffstat (limited to 'Library/Formula/voldemort.rb')
| -rw-r--r-- | Library/Formula/voldemort.rb | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Library/Formula/voldemort.rb b/Library/Formula/voldemort.rb index dd6c3ed69..69d144753 100644 --- a/Library/Formula/voldemort.rb +++ b/Library/Formula/voldemort.rb @@ -5,20 +5,16 @@ class Voldemort < Formula url 'https://github.com/downloads/voldemort/voldemort/voldemort-0.90.1.tar.gz' sha1 '8a8d33e3a5904f3aeea66bc0503fb12e449e0969' + skip_clean 'libexec/config' + def install system "ant" libexec.install %w(bin lib dist contrib) libexec.install "config" => "config-examples" - (libexec+"config").mkpath + (libexec/"config").mkpath # Write shim scripts for all utilities - Dir["#{libexec}/bin/*.sh"].each do |p| - script = File.basename(p) - (bin+script).write <<-EOS.undent - #!/bin/bash - exec #{p} "$@" - EOS - end + bin.write_exec_script Dir["#{libexec}/bin/*.sh"] end def caveats; <<-EOS.undent |
