Ok, I submitted a patch to the leiningen issue tracker on github to make the lein.sh script work on systems that aren't GNU/Linux derivatives or imitators. Since I couldn't find a place to upload the patch I just added it to the comment, wherein github's markdown apparently mangled it, resulting in a request to repost it as a pull request or to "the list".
Having neither the original nor my patched version (nor the patch) still on disk, I extracted this from the page sources and fixed the HTMLification. Looks right to me, and has all the fixes I remember in it. Not having a git clone of leiningen (nor even sure how to get one), nor the ability to read minds to know which list "the list" is, I'm sending this to the only clojure-related list I subscribe to, in hopes that someone who might actually be able to fix this issue reads it. <mike --- lein 2010-07-10 17:02:11.000000000 -0400 +++ lein-fixed 2010-07-10 17:11:20.000000000 -0400 @@ -1,7 +1,12 @@ -#!/bin/bash +#!/bin/sh VERSION="1.1.0" +case $VERSION in +*SNAPSHOT) SNAPSHOT="YES" ;; +*) SNAPSHOT="NO" ;; +esac + CLASSPATH="$(find lib/ -follow -mindepth 1 -maxdepth 1 -print0 2> /dev/null | tr \\0 \:)" 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" @@ -71,9 +76,10 @@ echo "launched by either the lein-swank plugin or the lein-nailgun plugin." echo fi - $RLWRAP java -client $JAVA_OPTS -cp "src/:classes/:$CLASSPATH" jline.ConsoleRunner clojure.main ${@:2} + shift + $RLWRAP java -client $JAVA_OPTS -cp "src/:classes/:$CLASSPATH" jline.ConsoleRunner clojure.main "$@" elif [ "$1" = "self-install" ]; then - if [[ $VERSION == *SNAPSHOT ]]; then + if [ $SNAPSHOT = "YES" ]; then echo "The self-install task is only meant for stable releases." echo "See the \"Hacking\" section of the README." exit 1 @@ -83,7 +89,7 @@ LEIN_URL="http://github.com/downloads/technomancy/leiningen/leiningen-$VERSION-standalone.jar" exec $HTTP_CLIENT "$LEIN_JAR" "$LEIN_URL" elif [ "$1" = "upgrade" ]; then - if [[ $VERSION == *SNAPSHOT ]]; then + if [ $SNAPSHOT = "YES" ]; then echo "The upgrade task is only meant for stable releases." echo "See the \"Hacking\" section of the README." exit 1 -- Mike Meyer <m...@mired.org> http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. O< ascii ribbon campaign - stop html mail - www.asciiribbon.org -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en