Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

First cut at make the clj script work in cygwin

  • Loading branch information...
commit 6610daf9f2cbc20eafd7203a6ffcda983d75a183 1 parent 613b9d9
russolsen authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 bin/clj
8 bin/clj 100755 → 100644
View
@@ -76,10 +76,8 @@ done
CLOJURE_BIN=`dirname "$PRG"` # bin dir, relative
CLOJURE_BIN=`(cd "$CLOJURE_BIN"; pwd)` # bin dir, absolute path
-echo $CLOJURE_BIN
CLOJURE_HOME=`dirname "$CLOJURE_BIN"`
-echo $CLOJURE_HOME
# Determine what we are going to use for java,
# either from JAVA_HOME or from the path
@@ -226,6 +224,12 @@ CLOJURE_CP=`add_to_path "$CLOJURE_CP" "$LIB_DIR_CP" $CP_DELIMITER`
CLOJURE_CP=`add_to_path "$CLOJURE_CP" "$USER_CP" $CP_DELIMITER`
+if $cygwin; then
+ CLOJURE_HOME=`cygpath --windows $CLOJURE_HOME`
+ JAVA_CMD=`cygpath --windows $JAVA_CMD`
+ CLOJURE_CP=`cygpath -wp $CLOJURE_CP`
+fi
+
$DEBUG_CMD $JAVA_CMD -DCLOJURE_HOME="$CLOJURE_HOME" \
-classpath "$CLOJURE_CP" "${JAVA_ARGS[@]}" $CLOJURE_JLINE_CLASS $CLOJURE_MAIN_CLASS "$@"
Please sign in to comment.
Something went wrong with that request. Please try again.