summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2010-12-20 15:47:33 +0100
committerantirez <antirez@gmail.com>2010-12-20 15:47:33 +0100
commitd3e5e28804bd3cfd038d95a1ffd85a92941bc788 (patch)
tree5fa35c0223b9d3a497b24535e5df50a627ce57bf /utils
parentd841dedb5fc4b33eff47ee05f517bca9cabd7533 (diff)
downloadredis-d3e5e28804bd3cfd038d95a1ffd85a92941bc788.tar.gz
added mkrelease.sh script into utils. gitignore modified accordingly since this script was originally ignored
Diffstat (limited to 'utils')
-rwxr-xr-xutils/mkrelease.sh14
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