diff options
| author | Adam Vandenberg | 2012-02-12 14:07:35 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2012-02-12 20:08:58 -0800 |
| commit | d90e0614e444ee8d7b7c7a1bb7590ec74ae5d1e0 (patch) | |
| tree | a1434b586a78d5a09b5b6d6043cb87b6d78c93a7 /Library | |
| parent | 8c2394b31bece97cf10ec960b6fe1dfa5d90029b (diff) | |
| download | homebrew-d90e0614e444ee8d7b7c7a1bb7590ec74ae5d1e0.tar.bz2 | |
groovy: use install_symlink
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/groovy.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Library/Formula/groovy.rb b/Library/Formula/groovy.rb index d48d66052..9b18cf488 100644 --- a/Library/Formula/groovy.rb +++ b/Library/Formula/groovy.rb @@ -6,16 +6,14 @@ class Groovy < Formula md5 '0c8759563be35e26fcebff240de4ca21' def install - rm_f Dir["bin/*.bat"] + # Don't need Windows files. + # Why are icons in bin? + rm_f Dir["bin/*.bat","bin/groovy.{icns,ico}"] prefix.install %w{ LICENSE.txt NOTICE.txt } libexec.install %w[bin conf lib] - bin.mkpath - Dir["#{libexec}/bin/*"].each do |f| - next unless File.extname(f).empty? - ln_s f, bin+File.basename(f) - end + bin.install_symlink Dir["#{libexec}/bin/*"] end def caveats |
