Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
2f91d7ad
Commit
2f91d7ad
authored
Jan 25, 2011
by
antirez
Browse files
add tarball script added
parent
5ef8f953
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/mktarball.sh
0 → 100755
View file @
2f91d7ad
#!/bin/sh
if
[
"
$1
"
=
""
]
then
echo
"Usage: mktarball.sh <git tag, branch or commit>"
echo
"Example: mktarball.sh 2.2-rc4"
exit
1
fi
PREFIX
=
"redis-
${
1
}
/"
TARBALL
=
"/tmp/redis-
${
1
}
.tar.gz"
git archive
--format
=
tar
--prefix
=
$PREFIX
$1
|
gzip
-c
>
$TARBALL
echo
"File created:
$TARBALL
"
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