Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
executable file 22 lines (17 sloc) 0.528 kb
#!/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
Jump to Line
Something went wrong with that request. Please try again.