Permalink
Browse files

added mkrelease.sh script into utils. gitignore modified accordingly …

…since this script was originally ignored
  • Loading branch information...
1 parent d841ded commit d3e5e28804bd3cfd038d95a1ffd85a92941bc788 @antirez antirez committed Dec 20, 2010
Showing with 14 additions and 1 deletion.
  1. +0 −1 .gitignore
  2. +14 −0 utils/mkrelease.sh
View
@@ -7,7 +7,6 @@ redis-benchmark
redis-check-dump
redis-check-aof
doc-tools
-mkrelease.sh
release
myredis.conf
misc/*
View
@@ -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

0 comments on commit d3e5e28

Please sign in to comment.