couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [03/37] couchdb commit: updated refs/heads/master to 1ef7182
Date Wed, 24 Jun 2015 21:33:11 GMT
add version file


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/cb53da85
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/cb53da85
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/cb53da85

Branch: refs/heads/master
Commit: cb53da859214d0a36395d6916b157ab8787e546c
Parents: cadd21c
Author: Jan Lehnardt <jan@apache.org>
Authored: Sun Apr 5 10:17:04 2015 +0200
Committer: Jan Lehnardt <jan@apache.org>
Committed: Wed Jun 24 23:06:46 2015 +0200

----------------------------------------------------------------------
 Makefile                           |  4 +++-
 build-aux/couchdb-build-release.sh | 11 ++++++++++-
 version.mk                         |  3 +++
 3 files changed, 16 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/cb53da85/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
index 58aab42..41dd9a6 100644
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,8 @@
 # License for the specific language governing permissions and limitations under
 # the License.
 
+include version.mk
+
 IN_RELEASE = $(shell if [ ! -d .git ]; then echo true; fi)
 
 all: couch fauxton
@@ -45,7 +47,7 @@ dist: all
 
 # creates a source tarball
 release:
-	./build-aux/couchdb-build-release.sh
+	./build-aux/couchdb-build-release.sh $(vsn_major).$(vsn_minor).$(vsn_patch)
 
 	# build fauxton
 	$(MAKE) fauxton

http://git-wip-us.apache.org/repos/asf/couchdb/blob/cb53da85/build-aux/couchdb-build-release.sh
----------------------------------------------------------------------
diff --git a/build-aux/couchdb-build-release.sh b/build-aux/couchdb-build-release.sh
index f2f7e1b..557c2b8 100755
--- a/build-aux/couchdb-build-release.sh
+++ b/build-aux/couchdb-build-release.sh
@@ -1,4 +1,13 @@
-#!/bin/sh -ex
+#!/bin/sh -e
+
+VERSION=$1
+
+if [ -z "$VERSION" ]; then
+  echo "NO VERSION"
+  exit 1
+fi
+
+echo "Building Apache CouchDB $VERSION"
 
 RELDIR=apache-couchdb
 # make release dir

http://git-wip-us.apache.org/repos/asf/couchdb/blob/cb53da85/version.mk
----------------------------------------------------------------------
diff --git a/version.mk b/version.mk
new file mode 100644
index 0000000..f263880
--- /dev/null
+++ b/version.mk
@@ -0,0 +1,3 @@
+vsn_major=2
+vsn_minor=0
+vsn_patch=0


Mime
View raw message