Skip to content

Instantly share code, notes, and snippets.

@duck1123
Created January 21, 2009 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duck1123/50145 to your computer and use it in GitHub Desktop.
Save duck1123/50145 to your computer and use it in GitHub Desktop.
#!/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