-
-
Save duck1123/50145 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
#!/bin/sh | |
cd `dirname $0`/.. | |
for file in WEB-INF/lib/*.jar; do | |
jars=$jars:$file | |
done | |
for file in WEB-INF/lib/endorsed/*.jar; do | |
jars=$jars:$file | |
done | |
for file in /usr/share/tomcat6/lib/*.jar; do | |
jars=$jars:$file | |
done | |
swankpath=$HOME/.emacs.d/site-lisp/swank-clojure | |
classpath=src/clojure:src/java:WEB-INF/classes:$jars:$swankpath | |
if which rlwrap > /dev/null | |
then | |
rlwrap java -Dclojure.compile.path="WEB-INF/classes" -cp $classpath clojure.lang.Repl | |
else | |
java -Dclojure.compile.path="WEB-INF/classes" -cp $classpath jline.ConsoleRunner clojure.lang.Repl | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment