summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2011-01-27 16:07:18 -0500
committerAdam Kocoloski <adam@cloudant.com>2011-01-27 16:19:07 -0500
commit97db6774d460d41c732e8d4ece1908fe3921cc03 (patch)
tree3999d3da098cf86eb3d53dc428491557f3df958f
parentf9102b903e3ff15cd9bea3bf4bcc7441e7a7d3a0 (diff)
Set couch app vsn based on deviation from last Apache tag
-rw-r--r--Makefile2
-rw-r--r--apps/couch/src/couch.app.src2
2 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e52d4698..159b5874 100644
--- a/Makefile
+++ b/Makefile
@@ -14,10 +14,12 @@
all: compile
+appfile = apps/couch/ebin/couch.app
compile:
@echo "==> couchjs (compile)"
@cd couchjs && python scons/scons.py
@./rebar compile
+ @cat $(appfile) | sed s/%VSN%/`git describe --match 1.*`/ > $(appfile)
clean:
@echo "==> couchjs (clean)"
diff --git a/apps/couch/src/couch.app.src b/apps/couch/src/couch.app.src
index 26bcd406..3b94feb7 100644
--- a/apps/couch/src/couch.app.src
+++ b/apps/couch/src/couch.app.src
@@ -1,6 +1,6 @@
{application, couch, [
{description, "Apache CouchDB"},
- {vsn, "1.0.1-patch-1"},
+ {vsn, "%VSN%"},
{registered, [
couch_config,
couch_db_update,