January 3, 2010

Using Clojure in Cygwin

 

Create a shell script as below:

#!/usr/bin/bash 
CLASS_PATH=/java/lib/clojure.jar:/java/lib/jline.jar
CMD="java -cp `cygpath -wp $CLASS_PATH`"
SHELL="jline.ConsoleRunner clojure.main"
SCRIPT="clojure.main"

if [ "$1" ]; then
$CMD $SCRIPT $1
else
$CMD $SHELL
fi

1 comment:

Unknown said...
This comment has been removed by the author.