]>
Commit | Line | Data |
---|---|---|
d3e5e288 | 1 | #!/bin/sh |
2 | if [ $# != "1" ] | |
3 | then | |
4 | echo "Usage: ./mkrelease.sh <git-ref>" | |
5 | exit 1 | |
6 | fi | |
7 | ||
8 | TAG=$1 | |
9 | TARNAME="redis-${TAG}.tar" | |
10 | echo "Generating /tmp/${TARNAME}" | |
11 | git archive $TAG --prefix redis-${TAG}/ > /tmp/$TARNAME || exit 1 | |
12 | echo "Gizipping the archive" | |
13 | rm -f /tmp/$TARNAME.gz | |
14 | gzip -9 /tmp/$TARNAME |