Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add tarball script added

  • Loading branch information...
commit 2f91d7ada4a7f89b885a82e350fa32a3cd051994 1 parent 5ef8f95
@antirez antirez authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 utils/mktarball.sh
View
13 utils/mktarball.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+if [ "$1" = "" ]
+then
+ echo "Usage: mktarball.sh <git tag, branch or commit>"
+ echo "Example: mktarball.sh 2.2-rc4"
+ exit 1
+fi
+
+PREFIX="redis-${1}/"
+TARBALL="/tmp/redis-${1}.tar.gz"
+git archive --format=tar --prefix=$PREFIX $1 | gzip -c > $TARBALL
+echo "File created: $TARBALL"
Please sign in to comment.
Something went wrong with that request. Please try again.