diff options
author | antirez <antirez@gmail.com> | 2010-12-20 15:47:33 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2010-12-20 15:47:33 +0100 |
commit | d3e5e28804bd3cfd038d95a1ffd85a92941bc788 (patch) | |
tree | 5fa35c0223b9d3a497b24535e5df50a627ce57bf /utils | |
parent | d841dedb5fc4b33eff47ee05f517bca9cabd7533 (diff) | |
download | redis-d3e5e28804bd3cfd038d95a1ffd85a92941bc788.tar.gz |
added mkrelease.sh script into utils. gitignore modified accordingly since this script was originally ignored
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/mkrelease.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/utils/mkrelease.sh b/utils/mkrelease.sh new file mode 100755 index 000000000..2316fff96 --- /dev/null +++ b/utils/mkrelease.sh @@ -0,0 +1,14 @@ +#!/bin/sh +if [ $# != "1" ] +then + echo "Usage: ./mkrelease.sh <git-ref>" + exit 1 +fi + +TAG=$1 +TARNAME="redis-${TAG}.tar" +echo "Generating /tmp/${TARNAME}" +git archive $TAG --prefix redis-${TAG}/ > /tmp/$TARNAME || exit 1 +echo "Gizipping the archive" +rm -f /tmp/$TARNAME.gz +gzip -9 /tmp/$TARNAME |