aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/apgdiff.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/apgdiff.rb
parentb40e5323ca055bf890406b634c97fccef49d9c68 (diff)
downloadhomebrew-ce2f7e1bd664e7260e48ffa37bf3fc909232a555.tar.bz2
Use script helpers
Diffstat (limited to 'Library/Formula/apgdiff.rb')
-rw-r--r--Library/Formula/apgdiff.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/Library/Formula/apgdiff.rb b/Library/Formula/apgdiff.rb
index 427fefe8a..cd43685d6 100644
--- a/Library/Formula/apgdiff.rb
+++ b/Library/Formula/apgdiff.rb
@@ -7,10 +7,7 @@ class Apgdiff < Formula
sha1 '1150d44e9da2c1417767d4106bdb297ed0adfed8'
def install
- libexec.install "apgdiff-#{version}.jar"
- (bin+'apgdiff').write <<-EOS.undent
- #!/bin/bash
- java -jar "#{libexec}/apgdiff-#{version}.jar" "$@"
- EOS
+ libexec.install "apgdiff-2.4.jar"
+ bin.write_jar_script libexec/"apgdiff-2.4.jar", "apgdiff"
end
end