aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/hadoop.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/hadoop.rb')
-rw-r--r--Library/Formula/hadoop.rb13
1 files changed, 1 insertions, 12 deletions
diff --git a/Library/Formula/hadoop.rb b/Library/Formula/hadoop.rb
index 60f098b7c..27f67888b 100644
--- a/Library/Formula/hadoop.rb
+++ b/Library/Formula/hadoop.rb
@@ -5,22 +5,11 @@ class Hadoop < Formula
url 'http://www.apache.org/dyn/closer.cgi?path=hadoop/core/hadoop-1.0.4/hadoop-1.0.4.tar.gz'
sha1 '1ab6f3271289ff83ba7b44a090ec1a3e6b77d1dd'
- 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 lib webapps contrib]
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/*"]
inreplace "#{libexec}/conf/hadoop-env.sh",
"# export JAVA_HOME=/usr/lib/j2sdk1.5-sun",