Created
February 5, 2013 15:26
-
-
Save shriphani/4715130 to your computer and use it in GitHub Desktop.
clj file
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
#!/bin/sh | |
# Clojure wrapper script. | |
# With no arguments runs Clojure's REPL. | |
# Put the Clojure jar from the cellar and the current folder in the classpath. | |
CLOJURE=$CLASSPATH:/usr/local/Cellar/clojure/1.4.0/clojure-1.4.0.jar:${PWD} | |
if [ "$#" -eq 0 ]; then | |
java -cp "$CLOJURE" clojure.main --repl | |
else | |
java -cp "$CLOJURE" clojure.main "$@" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment