aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/groovyserv.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2012-02-12 14:12:27 -0800
committerAdam Vandenberg2012-02-12 20:08:58 -0800
commite9d4a0f8b1b7fa6e1a1307b49c131bdcaf2da4a0 (patch)
tree7750cd3802e7e9d2d1cb3bf98a1f53c03d53661c /Library/Formula/groovyserv.rb
parentd90e0614e444ee8d7b7c7a1bb7590ec74ae5d1e0 (diff)
downloadhomebrew-e9d4a0f8b1b7fa6e1a1307b49c131bdcaf2da4a0.tar.bz2
groovyserv: use install_symlink
Diffstat (limited to 'Library/Formula/groovyserv.rb')
-rw-r--r--Library/Formula/groovyserv.rb12
1 files changed, 4 insertions, 8 deletions
diff --git a/Library/Formula/groovyserv.rb b/Library/Formula/groovyserv.rb
index b291db34f..d8ca52c34 100644
--- a/Library/Formula/groovyserv.rb
+++ b/Library/Formula/groovyserv.rb
@@ -12,19 +12,15 @@ class Groovyserv < Formula
def install
system 'gradle clean executables'
- # Install executables in libexec to avoid conflicts
- Dir::chdir Dir['build/executables/'].first do
- libexec.install %w{bin lib}
- end
prefix.install %w{LICENSE.txt README.txt NOTICE.txt}
+ # Install executables in libexec to avoid conflicts
+ libexec.install Dir["build/executables/{bin,lib}"]
+
# Remove windows files
rm_f Dir["#{libexec}/bin/*.bat"]
# Symlink binaries
- bin.mkpath
- Dir["#{libexec}/bin/*"].each do |f|
- ln_s f, bin + File.basename(f)
- end
+ bin.install_symlink Dir["#{libexec}/bin/*"]
end
end