From: antirez Date: Mon, 20 Dec 2010 14:47:33 +0000 (+0100) Subject: added mkrelease.sh script into utils. gitignore modified accordingly since this scrip... X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/d3e5e28804bd3cfd038d95a1ffd85a92941bc788?hp=d841dedb5fc4b33eff47ee05f517bca9cabd7533 added mkrelease.sh script into utils. gitignore modified accordingly since this script was originally ignored --- diff --git a/.gitignore b/.gitignore index 9d3423fe..90c94621 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 00000000..2316fff9 --- /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