Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
executable file 22 lines (17 sloc) 512 Bytes
#!/bin/sh
# Compile a single cljs file or a directory of cljs files into a
# single JavaScript file.
if [ "$CLOJURESCRIPT_HOME" = "" ]; then
CLOJURESCRIPT_HOME="`dirname $0`/.."
fi
CLJSC_CP=''
for next in lib/*: src/clj: src/cljs: test/cljs; do
CLJSC_CP=$CLJSC_CP$CLOJURESCRIPT_HOME'/'$next
done
if test $# -eq 0
then
echo "Usage: cljsc <file-or-dir>"
echo " cljsc <file-or-dir> {:optimizations :advanced}"
else
java -server -cp $CLJSC_CP clojure.main $CLOJURESCRIPT_HOME/bin/cljsc.clj $*
fi
Something went wrong with that request. Please try again.