2
0

01_create_tarball.sh 314 B

123456789101112131415
  1. #!/bin/sh
  2. if [ $# != "1" ]
  3. then
  4. echo "Usage: ./mkrelease.sh <git-ref>"
  5. exit 1
  6. fi
  7. TAG=$1
  8. TARNAME="redis-${TAG}.tar"
  9. echo "Generating /tmp/${TARNAME}"
  10. cd ~/hack/redis
  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