Skip to content

Commit

Permalink
script/aot_core that doesn't require boostrap
Browse files Browse the repository at this point in the history
  • Loading branch information
swannodette committed Mar 7, 2015
1 parent 74a64f9 commit 2e3a869
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 2 additions & 0 deletions script/aot.clj
@@ -0,0 +1,2 @@
(require '[cljs.closure :as cljsc])
(cljsc/aot-cache-core)
22 changes: 10 additions & 12 deletions script/aot_core
@@ -1,14 +1,12 @@
#!/bin/bash

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

java -server -cp $CLJSC_CP clojure.main -e \
"(require '[cljs.closure :as cljsc])
(cljsc/aot-cache-core)"
set -ex

CP_FILE=`mktemp /tmp/cljs_cp.txt.XXXXXXXXXXX`

mvn -f pom.template.xml dependency:build-classpath -Dmdep.outputFile=$CP_FILE

CLJS_CP=`cat $CP_FILE`

java -server -cp "$CLJS_CP:src/clj:src/cljs" clojure.main script/aot.clj

0 comments on commit 2e3a869

Please sign in to comment.