]> git.saurik.com Git - redis.git/commitdiff
added mkrelease.sh script into utils. gitignore modified accordingly since this scrip...
authorantirez <antirez@gmail.com>
Mon, 20 Dec 2010 14:47:33 +0000 (15:47 +0100)
committerantirez <antirez@gmail.com>
Mon, 20 Dec 2010 14:47:33 +0000 (15:47 +0100)
.gitignore
utils/mkrelease.sh [new file with mode: 0755]

index 9d3423fedf4687b87758b75be6c5a72f650ae90f..90c9462166fb18cf0b778e99bf8dbcbb57b0620b 100644 (file)
@@ -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 (executable)
index 0000000..2316fff
--- /dev/null
@@ -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