Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 27 lines (20 sloc) 1.319 kB
#!/bin/bash
##; clj -- script to start Clojure REPL with libraries necessary for Incanter
# For native BLAS/LAPACK support
INCANTER_HOME=.
INCANTER_LIB_DIR=$INCANTER_HOME/lib
INCANTER_SRC=$INCANTER_HOME/src
CLASSES_DIR=$INCANTER_HOME/classes
INCANTER_JAR=$INCANTER_HOME/incanter-core.jar
CLOJURE_JARS=$INCANTER_LIB_DIR/clojure.jar:$INCANTER_LIB_DIR/clojure-contrib.jar
JLINE_JARS=$INCANTER_LIB_DIR/jline-0.9.94.jar
COLT_JARS=$INCANTER_LIB_DIR/parallelcolt-0.7.2.jar:$INCANTER_LIB_DIR/netlib-java-0.9.1.jar:$INCANTER_LIB_DIR/arpack-combo-0.1.jar
JFREECHART_JARS=$INCANTER_LIB_DIR/jfreechart-1.0.13.jar:$INCANTER_LIB_DIR/jcommon-1.0.16.jar:$INCANTER_LIB_DIR/gnujaxp.jar
OPENCSV_JARS=$INCANTER_LIB_DIR/opencsv-1.8.jar
PROCESSING_JARS=$INCANTER_LIB_DIR/processing/core.jar:$INCANTER_LIB_DIR/processing/
if [ -z "$1" ]; then
java -server -cp .:..:$INCANTER_JAR:$COLT_JARS:$JLINE_JARS:$CLOJURE_JARS:$JFREECHART_JARS:$OPENCSV_JARS:$PROCESSING_JARS -Dclojure.compile.path=$CLASSES_DIR -Dincanter.home=$INCANTER_HOME jline.ConsoleRunner clojure.main
else
scriptname=$1
java -server -cp .:..:$INCANTER_JAR:$COLT_JARS:$JLINE_JARS:$CLOJURE_JARS:$JFREECHART_JARS:$OPENCSV_JARS:$PROCESSING_JARS -Dclojure.compile.path=$CLASSES_DIR -Dincanter.home=$INCANTER_HOME clojure.lang.Script $scriptname -- $*
fi
Jump to Line
Something went wrong with that request. Please try again.