01_create_tarball.sh 329 B

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