aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2012-02-11 12:17:16 -0800
committerAdam Vandenberg2012-02-11 15:20:54 -0800
commitf953fec16efde21620fc1ec5424fc24bc1a9b4d9 (patch)
tree5a892305340cda6dff22a091f64ef79893786d3c
parent6dcc45340a8ee50503d37642f5a192a1195748cf (diff)
downloadhomebrew-f953fec16efde21620fc1ec5424fc24bc1a9b4d9.tar.bz2
erviz: fix quoting and simplify
-rw-r--r--Library/Formula/erviz.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/erviz.rb b/Library/Formula/erviz.rb
index 5a2031866..8945ff9b1 100644
--- a/Library/Formula/erviz.rb
+++ b/Library/Formula/erviz.rb
@@ -8,11 +8,11 @@ class Erviz < Formula
depends_on 'graphviz'
def install
- libexec.install %w(core cui).map { |n| "_setup_/common/bin/erviz-#{n}-1.0.6.jar" }
+ libexec.install Dir["_setup_/common/bin/*.jar"]
(bin+'erviz').write <<-EOS.undent
#!/bin/sh
- java -Duser.language=en -Duser.country=US -cp "#{libexec}/erviz-cui-1.0.6.jar:#{libexec}/erviz-core-1.0.6.jar" jp.gr.java_conf.simply.erviz.cui.Main $@
+ java -Duser.language=en -Duser.country=US -cp "#{libexec}/erviz-cui-1.0.6.jar:#{libexec}/erviz-core-1.0.6.jar" jp.gr.java_conf.simply.erviz.cui.Main "$@"
EOS
end
end