diff options
author | Robert Newson <robert.newson@cloudant.com> | 2012-02-22 17:12:22 +0000 |
---|---|---|
committer | Robert Newson <robert.newson@cloudant.com> | 2012-02-22 17:13:21 +0000 |
commit | 986c86bf4355ea2b772e141d008efd1894b7df30 (patch) | |
tree | 22546c27d8ccacd0775266423217ef91c06013c6 /make_tarball | |
parent | f5913f7f4d59e8aee16468325497caf33894d3a3 (diff) | |
parent | db23528537fed7b9b0e85d3f3617f560cb52d630 (diff) |
Merge 0.4.x
Diffstat (limited to 'make_tarball')
-rwxr-xr-x | make_tarball | 20 |
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 |