1
0
mirror of https://github.com/fluencelabs/redis synced 2025-07-26 22:11:55 +00:00
Files
deps
src
tests
utils
build-static-symbols.tcl
generate-command-help.rb
install_server.sh
mkrelease.sh
redis-copy.rb
redis-sha1.rb
redis_init_script
redis_init_script.tpl
speed-regression.tcl
whatisdoing.sh
.gitignore
00-RELEASENOTES
BUGS
CONTRIBUTING
COPYING
Changelog
INSTALL
MANIFESTO
Makefile
README
redis.conf
runtest
sentinel.conf
redis/utils/mkrelease.sh

15 lines
298 B
Bash
Raw Normal View History

#!/bin/sh
if [ $# != "1" ]
then
echo "Usage: ./mkrelease.sh <git-ref>"
exit 1
fi
TAG=$1
TARNAME="redis-${TAG}.tar"
echo "Generating /tmp/${TARNAME}"
git archive $TAG --prefix redis-${TAG}/ > /tmp/$TARNAME || exit 1
echo "Gizipping the archive"
rm -f /tmp/$TARNAME.gz
gzip -9 /tmp/$TARNAME