added mkrelease.sh script into utils. gitignore modified accordingly since this script was originally ignored

This commit is contained in:
antirez committed 2010-12-20 15:47:33 +01:00
1 parent 2f5614e23f
commit 7111f96dba
2 files changed
+14 -1

No files matched your search

-1
View File
@@ -7,7 +7,6 @@ redis-benchmark
redis-check-dump
redis-check-aof
doc-tools
mkrelease.sh
release
myredis.conf
misc/*
+14
View File
@@ -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