summaryrefslogtreecommitdiff
path: root/make_tarball
diff options
context:
space:
mode:
authorRobert Newson <robert.newson@cloudant.com>2011-11-02 21:04:28 +0000
committerRobert Newson <robert.newson@cloudant.com>2011-11-04 12:57:24 +0000
commit2e1054abbb568e400204e8afcf21cf91085f0f3b (patch)
treeab826300d1be1e83aced3658fe6332fb614eb210 /make_tarball
parent8bbd833f866c8dfdaaf06f3dc5a5ca06030504e8 (diff)
Add a script to create a source tarball
Diffstat (limited to 'make_tarball')
-rwxr-xr-xmake_tarball20
1 files changed, 20 insertions, 0 deletions
diff --git a/make_tarball b/make_tarball
new file mode 100755
index 00000000..6b13c5fc
--- /dev/null
+++ b/make_tarball
@@ -0,0 +1,20 @@
+#!/bin/sh -e
+
+COUCHDB_VERSION=`git describe --match 1.*`
+BIGCOUCH_VERSION=`git describe`
+
+rm -rf .tmp
+git archive HEAD --prefix=.tmp/bigcouch/ | tar xf -
+pushd .tmp/bigcouch
+git init
+git add --all
+git commit -m "Tarball commit"
+git tag -m "CouchDB version" "$COUCHDB_VERSION"
+echo "This is the release tarball for $BIGCOUCH_VERSION" > BUILD
+git add BUILD
+git commit -am "Tarball commit"
+git tag -m "BigCouch version" "$BIGCOUCH_VERSION"
+popd
+
+tar czf $BIGCOUCH_VERSION.tar.gz -C .tmp bigcouch
+rm -rf .tmp