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

This commit is contained in:
antirez 2010-12-20 15:47:33 +01:00
parent d841dedb5f
commit d3e5e28804
2 changed files with 14 additions and 1 deletions

1
.gitignore vendored
View File

@ -7,7 +7,6 @@ redis-benchmark
redis-check-dump
redis-check-aof
doc-tools
mkrelease.sh
release
myredis.conf
misc/*

14
utils/mkrelease.sh Executable file
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