aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ringojs.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-07 11:20:52 -0700
committerAdam Vandenberg2012-10-27 19:28:49 -0700
commitce2f7e1bd664e7260e48ffa37bf3fc909232a555 (patch)
tree1a9b07793f59951405a7ee7dbc15a1cf5145229e /Library/Formula/ringojs.rb
parentb40e5323ca055bf890406b634c97fccef49d9c68 (diff)
downloadhomebrew-ce2f7e1bd664e7260e48ffa37bf3fc909232a555.tar.bz2
Use script helpers
Diffstat (limited to 'Library/Formula/ringojs.rb')
-rw-r--r--Library/Formula/ringojs.rb13
1 files changed, 1 insertions, 12 deletions
diff --git a/Library/Formula/ringojs.rb b/Library/Formula/ringojs.rb
index 201939619..654558a12 100644
--- a/Library/Formula/ringojs.rb
+++ b/Library/Formula/ringojs.rb
@@ -5,20 +5,9 @@ class Ringojs < Formula
homepage 'http://ringojs.org'
sha1 '28fd76fce28b41e2abcbe27a8b1731744d340e94'
- def shim_script target
- <<-EOS.undent
- #!/bin/bash
- "#{libexec}/bin/#{target}" "$@"
- EOS
- end
-
def install
rm Dir['bin/*.cmd']
libexec.install Dir['*']
-
- 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
end