Skip to content

Commit

Permalink
added mkrelease.sh script into utils. gitignore modified accordingly …
Browse files Browse the repository at this point in the history
…since this script was originally ignored
  • Loading branch information
antirez committed Dec 20, 2010
1 parent d841ded commit d3e5e28
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -7,7 +7,6 @@ redis-benchmark
redis-check-dump
redis-check-aof
doc-tools
mkrelease.sh
release
myredis.conf
misc/*
Expand Down
14 changes: 14 additions & 0 deletions 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

0 comments on commit d3e5e28

Please sign in to comment.