diff options
Diffstat (limited to 'Library/Formula/hive.rb')
| -rw-r--r-- | Library/Formula/hive.rb | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/Library/Formula/hive.rb b/Library/Formula/hive.rb index bb9b31f84..becf05c80 100644 --- a/Library/Formula/hive.rb +++ b/Library/Formula/hive.rb @@ -6,24 +6,11 @@ class Hive < Formula sha1 '8c8086ff9ec5de5c661d98d926bbedac62c28a61' depends_on 'hadoop' - - def shim_script target - <<-EOS.undent - #!/bin/bash - exec "#{libexec}/bin/#{target}" "$@" - EOS - end - def install rm_f Dir["bin/*.bat"] libexec.install %w[bin conf examples lib ] libexec.install Dir['*.jar'] - bin.mkpath - - Dir["#{libexec}/bin/*"].each do |b| - n = Pathname.new(b).basename - (bin+n).write shim_script(n) - end + bin.write_exec_script Dir["#{libexec}/bin/*"] end def caveats; <<-EOS.undent |
