aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/jasmin.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/jasmin.rb
parentb40e5323ca055bf890406b634c97fccef49d9c68 (diff)
downloadhomebrew-ce2f7e1bd664e7260e48ffa37bf3fc909232a555.tar.bz2
Use script helpers
Diffstat (limited to 'Library/Formula/jasmin.rb')
-rw-r--r--Library/Formula/jasmin.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/Library/Formula/jasmin.rb b/Library/Formula/jasmin.rb
index 6a7849191..5a22602fc 100644
--- a/Library/Formula/jasmin.rb
+++ b/Library/Formula/jasmin.rb
@@ -5,19 +5,13 @@ class Jasmin < Formula
url 'http://downloads.sourceforge.net/project/jasmin/jasmin/jasmin-2.4/jasmin-2.4.zip'
sha1 'c66400680144e0da4efdcf4a084e42e2355189fe'
- def script; <<-EOS.undent
- #!/bin/sh
- java -jar "#{libexec}/jasmin.jar" "$@"
- EOS
- end
-
def install
# Remove Windows scripts
rm_rf Dir['*.bat']
libexec.install Dir['*.jar']
prefix.install %w[Readme.txt license-ant.txt license-jasmin.txt]
- (bin+"jasmin").write script
+ bin.write_jar_script libexec/'jasmin.jar', 'jasmin'
end
def test