Skip to content

Instantly share code, notes, and snippets.

@ninjudd
Created July 18, 2012 01:26
Show Gist options
  • Select an option

  • Save ninjudd/3133460 to your computer and use it in GitHub Desktop.

Select an option

Save ninjudd/3133460 to your computer and use it in GitHub Desktop.
diff --git a/bin/lein b/bin/lein
index ac3cd58..dd06a53 100755
--- a/bin/lein
+++ b/bin/lein
@@ -213,6 +213,8 @@ else
if [ "$OSTYPE" = "cygwin" ]; then
TRAMPOLINE_FILE=`cygpath -w $TRAMPOLINE_FILE`
fi
+ args="$@"
+ args=${args/#:/with-profile }
$LEIN_JAVA_CMD \
-client -XX:+TieredCompilation \
@@ -222,7 +224,7 @@ else
-Dleiningen.original.pwd="$ORIGINAL_PWD" \
-Dleiningen.trampoline-file=$TRAMPOLINE_FILE \
-cp "$CLASSPATH" \
- clojure.main -m leiningen.core.main "$@"
+ clojure.main -m leiningen.core.main $args
EXIT_CODE=$?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment