#!/bin/sh
#
# $FreeBSD: ports/lang/clojure/files/clojure-bin.in,v 1.3 2009/01/23 09:15:23 rafan Exp $

if [ -z "$1" ]
then
    JAVA_VERSION="1.5+" "/usr/local/bin/java" -cp "/usr/local/share/java/classes/jline.jar:/usr/local/share/java/classes/clojure.jar:$CLASSPATH" jline.ConsoleRunner clojure.lang.Repl
else
    SCRIPT="$1"
    shift 1
    JAVA_VERSION="1.5+" "/usr/local/bin/java" -cp "/usr/local/share/java/classes/clojure.jar:$CLASSPATH" clojure.lang.Script "$SCRIPT" -- "$@"
fi
