aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMartin Kühl2010-09-15 21:21:44 +0200
committerAdam Vandenberg2010-10-03 20:20:31 -0700
commitfc6f2c88fd080025f128f300c98ce4a66ed3365b (patch)
tree97509a4b1d9cb515afbd0402c9f159509ed43f48 /Library
parent1bcc94b27534626e1412c4d7548b209a60311fff (diff)
downloadhomebrew-fc6f2c88fd080025f128f300c98ce4a66ed3365b.tar.bz2
Simplify `clj` script and fix some quoting.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/clojure.rb9
1 files changed, 2 insertions, 7 deletions
diff --git a/Library/Formula/clojure.rb b/Library/Formula/clojure.rb
index 914ab766f..18e5835fb 100644
--- a/Library/Formula/clojure.rb
+++ b/Library/Formula/clojure.rb
@@ -13,13 +13,8 @@ class Clojure <Formula
def script
<<-EOS
#!/bin/sh
-# Runs clojure.
-# With no arguments, runs Clojure's REPL.
-
-# resolve links - $0 may be a softlink
-CLOJURE=$CLASSPATH:$(brew --cellar)/#{name}/#{version}/#{jar}
-
-java -cp $CLOJURE clojure.main "$@"
+# Run Clojure.
+exec java -cp "#{prefix}/#{jar}" clojure.main "$@"
EOS
end