Skip to content

Commit 2501984

Browse files
author
dnolen
committed
ClojureScript 1.7.X
1 parent b514741 commit 2501984

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

script/build

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ POM_FILE="pom.xml"
2020
# if the tag is v0.0.1).
2121
MAJOR="1"
2222
MINOR="7"
23-
REVISION=`git --no-replace-objects describe --match v$MAJOR\.$MINOR`
23+
REVISION=`git --no-replace-objects describe --match v$MAJOR.$MINOR`
2424

2525
# Extract the version number from the string. Do this in two steps so
2626
# it is a little easier to understand.
@@ -29,14 +29,14 @@ REVISION=${REVISION:0:${#REVISION}-9} # drop the last 9 characters
2929

3030
TAG=r$REVISION
3131

32-
sed -e s/CLOJURESCRIPT_VERSION/$MAJOR.$MINOR-$REVISION/ < "$POM_TEMPLATE" > "$POM_FILE"
32+
sed -e s/CLOJURESCRIPT_VERSION/$MAJOR.$MINOR.$REVISION/ < "$POM_TEMPLATE" > "$POM_FILE"
3333

3434
COMP_FILE=`mktemp /tmp/compiler.clj.XXXXXXXXXXX`
3535
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
3636
mv $COMP_FILE src/main/clojure/cljs/util.cljc
3737

3838
CLJS_FILE=`mktemp /tmp/core.cljs.XXXXXXXXXXX`
39-
sed -e 's/^.def \*clojurescript-version\*.*$/(def *clojurescript-version* '\""$MAJOR.$MINOR-$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
4040
mv $CLJS_FILE src/main/cljs/cljs/core.cljs
4141

4242
rm -f src/main/cljs/cljs/core.aot.js
@@ -46,11 +46,11 @@ rm -f src/main/cljs/cljs/core.cljs.cache.aot.edn
4646
./script/aot_core
4747

4848
AOT_FILE=`mktemp /tmp/core.aot.js.XXXXXXXXXXX`
49-
sed -e 's/0.0-0000/$MAJOR.$MINOR-$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
5050
mv $AOT_FILE src/main/cljs/cljs/core.aot.js
5151

5252
AOT_CACHE_FILE=`mktemp /tmp/core.cljs.cache.aot.edn.XXXXXXXXXXX`
53-
sed -e 's/0.0-0000/$MAJOR.$MINOR-$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
5454
mv $AOT_CACHE_FILE src/main/cljs/cljs/core.cljs.cache.aot.edn
5555

5656
# For Hudson server

src/main/clojure/cljs/util.cljc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,21 @@
2828
(when-let [i (:incremental *clojurescript-version*)]
2929
(str "." i))
3030
(when-let [q (:qualifier *clojurescript-version*)]
31-
(str "-" q))
31+
(str "." q))
3232
(when (:interim *clojurescript-version*)
3333
"-SNAPSHOT"))
34-
"0.0-0000"))
34+
"0.0.0000"))
3535

3636
(defn ^String compiled-by-version [f]
3737
(with-open [reader (io/reader f)]
3838
(let [match (->> reader line-seq first
39-
(re-matches #".*ClojureScript (\d+\.\d+-\d+).*$"))]
40-
(or (and match (second match)) "0.0-0000"))))
39+
(re-matches #".*ClojureScript (\d+\.\d+\.\d+).*$"))]
40+
(or (and match (second match)) "0.0.0000"))))
4141

4242
(defn build-options [^File f]
4343
(with-open [reader (io/reader f)]
4444
(let [match (->> reader line-seq first
45-
(re-matches #".*ClojureScript \d+\.\d+-\d+ (.*)$"))]
45+
(re-matches #".*ClojureScript \d+\.\d+\.\d+ (.*)$"))]
4646
(and match (edn/read-string (second match))))))
4747

4848
(defn munge-path [ss]

0 commit comments

Comments
 (0)