]> git.saurik.com Git - redis.git/blame_incremental - utils/mkrelease.sh
redis-trib: initial working implementation of cluster rehashing, more work needed...
[redis.git] / utils / mkrelease.sh
... / ...
CommitLineData
1#!/bin/sh
2if [ $# != "1" ]
3then
4 echo "Usage: ./mkrelease.sh <git-ref>"
5 exit 1
6fi
7
8TAG=$1
9TARNAME="redis-${TAG}.tar"
10echo "Generating /tmp/${TARNAME}"
11git archive $TAG --prefix redis-${TAG}/ > /tmp/$TARNAME || exit 1
12echo "Gizipping the archive"
13rm -f /tmp/$TARNAME.gz
14gzip -9 /tmp/$TARNAME