From 97db6774d460d41c732e8d4ece1908fe3921cc03 Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Thu, 27 Jan 2011 16:07:18 -0500 Subject: Set couch app vsn based on deviation from last Apache tag --- Makefile | 2 ++ apps/couch/src/couch.app.src | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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, -- cgit v1.2.3