Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a script to create a source tarball

  • Loading branch information...
commit 2e1054abbb568e400204e8afcf21cf91085f0f3b 1 parent 8bbd833
Robert Newson authored
Showing with 20 additions and 0 deletions.
  1. +20 −0 make_tarball
View
20 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
Please sign in to comment.
Something went wrong with that request. Please try again.