summaryrefslogtreecommitdiff
path: root/make_tarball
blob: 6b13c5fc4109594ee694107e85cd9a02840cec8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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