Ticket #19798: clj.sh.patch
File clj.sh.patch, 639 bytes (added by mdippery@…, 15 years ago) |
---|
-
clj.sh
old new 22 22 dir=`dirname $dir` 23 23 dir=`cd "$dir" > /dev/null && pwd` 24 24 cljjar="$dir/../$cljjar" 25 cp="${PWD}:${cljjar}" 26 27 # Add extra jars as specified by `.clojure` file 28 # Borrowed from <http://github.com/mreid/clojure-framework> 29 if [ -f .clojure ]; then 30 cp=$cp:`cat .clojure` 31 fi 25 32 26 33 if [ -z "$1" ]; then 27 exec java -classpath $c ljjar$cljclass34 exec java -classpath $cp $cljclass 28 35 else 29 36 scriptname=$1 30 exec java -classpath $c ljjar$cljscript $scriptname --$*37 exec java -classpath $cp $cljscript $scriptname --$* 31 38 fi