Created
May 9, 2010 13:53
-
-
Save masaedw/395164 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- lein 2010-05-09 22:48:51.000000000 +0900 | |
+++ bin/lein 2010-05-09 23:01:27.000000000 +0900 | |
@@ -2,7 +2,8 @@ | |
VERSION="1.1.0" | |
-CLASSPATH="$(find lib/ -follow -mindepth 1 -maxdepth 1 -print0 2> /dev/null | tr \\0 \:)" | |
+CLASSPATH_LOCAL="$(find lib/ -follow -mindepth 1 -maxdepth 1 -print0 2> /dev/null | tr \\0 \:)" | |
+CLASSPATH=$CLASSPATH_LOCAL | |
LEIN_JAR="$HOME/.m2/repository/leiningen/leiningen/$VERSION/leiningen-$VERSION-standalone.jar" | |
CLOJURE_JAR="$HOME/.m2/repository/org/clojure/clojure/1.1.0/clojure-1.1.0.jar" | |
@@ -70,8 +71,10 @@ | |
echo "this, but for now you will get more consistent behaviour from repls" | |
echo "launched by either the lein-swank plugin or the lein-nailgun plugin." | |
echo | |
+ $RLWRAP java -client $JAVA_OPTS -cp "src/:classes/:$CLASSPATH_LOCAL" jline.ConsoleRunner clojure.main ${@:2} | |
+ else | |
+ $RLWRAP java -client $JAVA_OPTS -cp "src/:classes/:$CLASSPATH" jline.ConsoleRunner clojure.main ${@:2} | |
fi | |
- $RLWRAP java -client $JAVA_OPTS -cp "src/:classes/:$CLASSPATH" jline.ConsoleRunner clojure.main ${@:2} | |
elif [ "$1" = "self-install" ]; then | |
if [[ $VERSION == *SNAPSHOT ]]; then | |
echo "The self-install task is only meant for stable releases." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment