diff --git a/.gitignore b/.gitignore index 9d3423fed..90c946216 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,6 @@ redis-benchmark redis-check-dump redis-check-aof doc-tools -mkrelease.sh release myredis.conf misc/* 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 " + 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