Created
February 2, 2012 10:06
-
-
Save yyuu/1722714 to your computer and use it in GitHub Desktop.
switching between sbt versions (sbt @${VERSION} ${SBT_OPTIONS})
This file contains hidden or 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
| #!/bin/sh -e | |
| SBT_HOME="$HOME/usr/sbt" | |
| if test $# -gt 0 -a -f "$SBT_HOME/${1#@}/sbt-launch.jar"; then | |
| SBT_JAR="$SBT_HOME/${1#@}/sbt-launch.jar" | |
| shift | |
| fi | |
| if ! test -f "$SBT_JAR"; then | |
| SBT_JAR="$SBT_HOME/sbt-launch.jar" | |
| fi | |
| exec java -Xmx512M -jar "$SBT_JAR" "$@" | |
| # vim:set ft=sh : |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment