mirror of
http://github.com/valkey-io/valkey
synced 2024-11-21 16:46:15 +00:00
added mkrelease.sh script into utils. gitignore modified accordingly since this script was originally ignored
This commit is contained in:
parent
d841dedb5f
commit
d3e5e28804
1
.gitignore
vendored
1
.gitignore
vendored
@ -7,7 +7,6 @@ redis-benchmark
|
||||
redis-check-dump
|
||||
redis-check-aof
|
||||
doc-tools
|
||||
mkrelease.sh
|
||||
release
|
||||
myredis.conf
|
||||
misc/*
|
||||
|
14
utils/mkrelease.sh
Executable file
14
utils/mkrelease.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/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
|
Loading…
Reference in New Issue
Block a user