@@ -18,7 +18,9 @@ POM_FILE="pom.xml"
18
18
# where 856 is the number of commits since the v0.0 tag. It will always
19
19
# find the v0.0 tag and will always return the total number of commits (even
20
20
# if the tag is v0.0.1).
21
- REVISION=` git --no-replace-objects describe --match v0.0`
21
+ MAJOR=" 1"
22
+ MINOR=" 7"
23
+ REVISION=` git --no-replace-objects describe --match v$MAJOR \. $MINOR `
22
24
23
25
# Extract the version number from the string. Do this in two steps so
24
26
# it is a little easier to understand.
@@ -27,14 +29,14 @@ REVISION=${REVISION:0:${#REVISION}-9} # drop the last 9 characters
27
29
28
30
TAG=r$REVISION
29
31
30
- sed -e s/CLOJURESCRIPT_VERSION/0.0 -$REVISION / < " $POM_TEMPLATE " > " $POM_FILE "
32
+ sed -e s/CLOJURESCRIPT_VERSION/$MAJOR . $MINOR -$REVISION / < " $POM_TEMPLATE " > " $POM_FILE "
31
33
32
34
COMP_FILE=` mktemp /tmp/compiler.clj.XXXXXXXXXXX`
33
- sed -e ' s/^.def ^:dynamic \*clojurescript-version\*.*$/(def ^:dynamic *clojurescript-version* {:major 0 , :minor 0 , :qualifier ' " $REVISION " ' })/' src/main/clojure/cljs/util.cljc > $COMP_FILE
35
+ sed -e ' s/^.def ^:dynamic \*clojurescript-version\*.*$/(def ^:dynamic *clojurescript-version* {:major ' " $MAJOR " ' , :minor ' " $MINOR " ' , :qualifier ' " $REVISION " ' })/' src/main/clojure/cljs/util.cljc > $COMP_FILE
34
36
mv $COMP_FILE src/main/clojure/cljs/util.cljc
35
37
36
38
CLJS_FILE=` mktemp /tmp/core.cljs.XXXXXXXXXXX`
37
- sed -e ' s/^.def \*clojurescript-version\*.*$/(def *clojurescript-version* ' \" " 0.0 -$REVISION " \" ' )/' src/main/cljs/cljs/core.cljs > $CLJS_FILE
39
+ sed -e ' s/^.def \*clojurescript-version\*.*$/(def *clojurescript-version* ' \" " $MAJOR . $MINOR -$REVISION " \" ' )/' src/main/cljs/cljs/core.cljs > $CLJS_FILE
38
40
mv $CLJS_FILE src/main/cljs/cljs/core.cljs
39
41
40
42
rm -f src/main/cljs/cljs/core.aot.js
@@ -44,11 +46,11 @@ rm -f src/main/cljs/cljs/core.cljs.cache.aot.edn
44
46
./script/aot_core
45
47
46
48
AOT_FILE=` mktemp /tmp/core.aot.js.XXXXXXXXXXX`
47
- sed -e ' s/0.0-0000/0.0 -$REVISION/' src/main/cljs/cljs/core.aot.js > $AOT_FILE
49
+ sed -e ' s/0.0-0000/$MAJOR.$MINOR -$REVISION/' src/main/cljs/cljs/core.aot.js > $AOT_FILE
48
50
mv $AOT_FILE src/main/cljs/cljs/core.aot.js
49
51
50
52
AOT_CACHE_FILE=` mktemp /tmp/core.cljs.cache.aot.edn.XXXXXXXXXXX`
51
- sed -e ' s/0.0-0000/0.0 -$REVISION/' src/main/cljs/cljs/core.cljs.cache.aot.edn > $AOT_CACHE_FILE
53
+ sed -e ' s/0.0-0000/$MAJOR.$MINOR -$REVISION/' src/main/cljs/cljs/core.cljs.cache.aot.edn > $AOT_CACHE_FILE
52
54
mv $AOT_CACHE_FILE src/main/cljs/cljs/core.cljs.cache.aot.edn
53
55
54
56
# For Hudson server
0 commit comments