Ticket #19798: clj.sh.patch

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

Patch for clj.sh

  • clj.sh

    old new  
    2222dir=`dirname $dir`
    2323dir=`cd "$dir" > /dev/null && pwd`
    2424cljjar="$dir/../$cljjar"
     25cp="${PWD}:${cljjar}"
     26
     27# Add extra jars as specified by `.clojure` file
     28# Borrowed from <http://github.com/mreid/clojure-framework>
     29if [ -f .clojure ]; then
     30  cp=$cp:`cat .clojure`
     31fi
    2532
    2633if [ -z "$1" ]; then
    27   exec java -classpath $cljjar $cljclass
     34  exec java -classpath $cp $cljclass
    2835else
    2936  scriptname=$1
    30   exec java -classpath $cljjar $cljscript $scriptname --$*
     37  exec java -classpath $cp $cljscript $scriptname --$*
    3138fi