Back to home page

Redis cross reference

 
 

    


0001 #!/bin/sh
0002 if [ $# != "1" ]
0003 then
0004     echo "Usage: ./mkrelease.sh <git-ref>"
0005     exit 1
0006 fi
0007 
0008 TAG=$1
0009 TARNAME="redis-${TAG}.tar"
0010 echo "Generating /tmp/${TARNAME}"
0011 git archive $TAG --prefix redis-${TAG}/ > /tmp/$TARNAME || exit 1
0012 echo "Gizipping the archive"
0013 rm -f /tmp/$TARNAME.gz
0014 gzip -9 /tmp/$TARNAME