summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,