aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/findbugs.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/findbugs.rb
parentb40e5323ca055bf890406b634c97fccef49d9c68 (diff)
downloadhomebrew-ce2f7e1bd664e7260e48ffa37bf3fc909232a555.tar.bz2
Use script helpers
Diffstat (limited to 'Library/Formula/findbugs.rb')
-rw-r--r--Library/Formula/findbugs.rb11
1 files changed, 2 insertions, 9 deletions
diff --git a/Library/Formula/findbugs.rb b/Library/Formula/findbugs.rb
index 401d4fe65..57e4a6888 100644
--- a/Library/Formula/findbugs.rb
+++ b/Library/Formula/findbugs.rb
@@ -5,21 +5,14 @@ class Findbugs < Formula
url 'http://sourceforge.net/projects/findbugs/files/findbugs/2.0.1/findbugs-2.0.1.tar.gz'
sha1 '8358d28d90baecbf8590ef00b69c194ff1a8475c'
- def startup_script name
- <<-EOS.undent
- #!/bin/bash
- exec "#{libexec}/bin/#{name}" "$@"
- EOS
- end
-
def install
# Remove windows files
rm_f Dir["bin/*.bat"]
prefix.install 'README.txt'
libexec.install Dir['*']
- (bin+'fb').write startup_script('fb')
- (bin+'findbugs').write startup_script('findbugs')
+ bin.write_exec_script libexec/'bin/fb'
+ bin.write_exec_script libexec/'bin/findbugs'
end
def caveats; <<-EOS.undent