File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,14 @@ REVISION=`git --no-replace-objects describe --match v0.0`
1919REVISION=${REVISION: 5} # drop the first 5 characters
2020REVISION=${REVISION: 0: ${# REVISION} -9} # drop the last 9 characters
2121
22+ COMP_FILE=` mktemp /tmp/compiler.clj.XXXXXXXXXXX`
23+ sed -e ' s/^.def ^:dynamic \*clojurescript-version\*.*$/(def ^:dynamic *clojurescript-version* {:major 0, :minor 0, :qualifier ' " $REVISION " ' })/' src/clj/cljs/util.clj > $COMP_FILE
24+ mv $COMP_FILE src/clj/cljs/util.clj
25+
26+ CLJS_FILE=` mktemp /tmp/core.cljs.XXXXXXXXXXX`
27+ sed -e ' s/^.def \*clojurescript-version\*.*$/(def *clojurescript-version* ' \" " 0.0-$REVISION " \" ' )/' src/cljs/cljs/core.cljs > $CLJS_FILE
28+ mv $CLJS_FILE src/cljs/cljs/core.cljs
29+
2230rm -f src/cljs/cljs/core.aot.js
2331rm -f src/cljs/cljs/core.aot.js.map
2432rm -f src/cljs/cljs/core.cljs.cache.aot.edn
You can’t perform that action at this time.
0 commit comments