Ticket #19798: clj-rlwrap.sh.patch

File clj-rlwrap.sh.patch, 800 bytes (added by mdippery@…, 15 years ago)

Patch for clj-rlwrap.sh

  • clj-rlwrap.sh

    old new  
    2424dir=`dirname $dir`
    2525dir=`cd "$dir" > /dev/null && pwd`
    2626cljjar="$dir/../$cljjar"
     27cp="${PWD}:${cljjar}"
    2728cljcompletions="$dir/../$cljcompletions"
    2829
     30# Add extra jars as specified by `.clojure` file
     31# Borrowed from <http://github.com/mreid/clojure-framework>
     32if [ -f .clojure ]; then
     33  cp=$cp:`cat .clojure`
     34fi
     35
    2936if [ $# -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
    3238else
    3339  scriptname=$1
    34   exec java -classpath $cljjar $cljscript $scriptname --$*
     40  exec java -classpath $cp $cljscript $scriptname --$*
    3541fi
    3642