]> git.saurik.com Git - redis.git/blame - utils/mkrelease.sh
Added installer and config template renderer
[redis.git] / utils / mkrelease.sh
CommitLineData
d3e5e288 1#!/bin/sh
2if [ $# != "1" ]
3then
4 echo "Usage: ./mkrelease.sh <git-ref>"
5 exit 1
6fi
7
8TAG=$1
9TARNAME="redis-${TAG}.tar"
10echo "Generating /tmp/${TARNAME}"
11git archive $TAG --prefix redis-${TAG}/ > /tmp/$TARNAME || exit 1
12echo "Gizipping the archive"
13rm -f /tmp/$TARNAME.gz
14gzip -9 /tmp/$TARNAME