Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
44acd50a
Commit
44acd50a
authored
Sep 19, 2014
by
antirez
Browse files
First version of release scripts.
parent
8fe3ecff
Changes
4
Show whitespace changes
Inline
Side-by-side
utils/releasetools/00_test_release.sh
0 → 100755
View file @
44acd50a
#!/bin/sh
if
[
$#
!=
"1"
]
then
echo
"Usage:
${
0
}
<git-ref>"
exit
1
fi
TAG
=
$1
TARNAME
=
"redis-
${
TAG
}
.tar.gz"
DOWNLOADURL
=
"http://download.redis.io/releases/
${
TARNAME
}
"
ssh antirez@metal
"export TERM=xterm;
cd /tmp;
rm -rf test_release_tmp_dir;
cd test_release_tmp_dir;
wget
$DOWNLOADURL
;
tar xvzf
$TARNAME
;
cd redis-
${
TAG
}
;
make;
./runtest;
./runtest-sentinel;
if [ -x runtest-cluster ]; then
./runtest-cluster;
fi"
utils/
mk
release.sh
→
utils/release
tools/01_create_tarball
.sh
View file @
44acd50a
File moved
utils/releasetools/02_upload_tarball.sh
0 → 100755
View file @
44acd50a
#!/bin/bash
scp /tmp/redis-
${
1
}
antirez@antirez.com:/var/virtual/download.redis.io/httpdocs/releases/
ssh antirez@antirez.com
'cd /var/virtual/download.redis.io/httpdocs; ./update.sh ${1}'
utils/releasetools/03_release_hash.sh
0 → 100755
View file @
44acd50a
#!/bin/bash
SHA
=
$(
curl
-s
http://download.redis.io/releases/redis-
${
1
}
.tar.gz | shasum |
cut
-f
1
-d
' '
)
ENTRY
=
"hash redis-
${
1
}
.tar.gz sha1
$SHA
http://download.redis.io/releases/redis-
${
1
}
.tar.gz"
echo
$ENTRY
>>
~/hack/redis-hashes/README
cat
~/hack/redis-hashes/README
echo
"Press any key to commit, Ctrl-C to abort)."
read yes
(
cd
~/hack/redis-hashes
;
git commit
-m
'${1} hash.'
;
git push
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment