adding code to make the scripts work on cygwin (need to change CLASSPATH

delimeter)
This commit is contained in:
Mark Simpson 2011-03-29 19:15:17 -04:00
parent 974a6a48f0
commit 7f1bb18215
3 changed files with 12 additions and 0 deletions

4
script/repl Executable file → Normal file
View File

@ -5,4 +5,8 @@ for f in lib/*.jar; do
CLASSPATH=$CLASSPATH:$f
done
if [ "$OSTYPE" = "cygwin" ]; then
CLASSPATH=`cygpath -wp $CLASSPATH`
fi
java -Xmx1G -cp $CLASSPATH jline.ConsoleRunner clojure.main

4
script/run Executable file → Normal file
View File

@ -5,5 +5,9 @@ for f in lib/*.jar; do
CLASSPATH=$CLASSPATH:$f
done
if [ "$OSTYPE" = "cygwin" ]; then
CLASSPATH=`cygpath -wp $CLASSPATH`
fi
java -cp "$CLASSPATH" clojure.main -i script/run.clj
echo

4
script/test Executable file → Normal file
View File

@ -5,5 +5,9 @@ for f in lib/*.jar; do
CLASSPATH=$CLASSPATH:$f
done
if [ "$OSTYPE" = "cygwin" ]; then
CLASSPATH=`cygpath -wp $CLASSPATH`
fi
java -cp "$CLASSPATH" clojure.main -i script/test.clj
echo