Commits

Anonymous committed 2f91d7a

add tarball script added

  • Participants
  • Parent commits 5ef8f95
  • Branches 2.2, 2.2-issue-561 7
    1. 2.2-jemalloc-static
    2. 2.2-scripting
    3. 2.2-zmalloc2
    4. 2.4
    5. 2.4-stats
    6. 2.4-zmalloc2
    7. dbapi-refactoring
  • Tags 2.2.0-rc4

Comments (0)

Files changed (1)

utils/mktarball.sh

+#!/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"