From 7f1bb182153e72eca220dbe7e59240836ee53b43 Mon Sep 17 00:00:00 2001 From: Mark Simpson Date: Tue, 29 Mar 2011 19:15:17 -0400 Subject: [PATCH] adding code to make the scripts work on cygwin (need to change CLASSPATH delimeter) --- script/repl | 4 ++++ script/run | 4 ++++ script/test | 4 ++++ 3 files changed, 12 insertions(+) mode change 100755 => 100644 script/repl mode change 100755 => 100644 script/run mode change 100755 => 100644 script/test diff --git a/script/repl b/script/repl old mode 100755 new mode 100644 index d85108c..940f8ed --- a/script/repl +++ b/script/repl @@ -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 diff --git a/script/run b/script/run old mode 100755 new mode 100644 index 6a5db2d..860831b --- a/script/run +++ b/script/run @@ -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 diff --git a/script/test b/script/test old mode 100755 new mode 100644 index 9d0f2dd..baabff4 --- a/script/test +++ b/script/test @@ -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