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