Sha256: 7fa8c99fe98ddcc313cdd0ddf3ab43354bea466c25a3cc80d7356fe44880e0aa

Contents?: true

Size: 528 Bytes

Versions: 2

Compression:

Stored size: 528 Bytes

Contents

#!/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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
clementine-0.0.3 ext/clojure-clojurescript-bef56a7/bin/cljsc
clementine-0.0.2 ext/clojure-clojurescript-bef56a7/bin/cljsc