Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Olivier Stasse
Gepetto Utils
Commits
c2f22309
Commit
c2f22309
authored
Jun 12, 2018
by
Guilhem Saurel
Browse files
details
parent
9e7e6a9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/release.sh
View file @
c2f22309
#!/bin/bash
# Usage: ./release.sh version [pkg_name] [revision]
# pkg_name defaults to the name of the current working directory
# eg.: ./release.sh 0.8.1
set
-e
TAG
=
$1
...
...
@@ -13,7 +17,7 @@ rm -vf *.tar* /tmp/*.tar*
if
$(
grep
-q
"v
$TAG
"
<<<
$(
git tag
))
then
echo
-e
"
\n
!!!
Ce
tag exist
e
!!!
\n
"
echo
-e
"
\n
!!!
This
tag exist
s
!!!
\n
"
git checkout
"v
$TAG
"
git submodule update
--init
else
...
...
@@ -33,7 +37,8 @@ gzip "${SOFTAG}.tar"
gpg
--armor
--detach-sign
"
${
SOFTAG
}
.tar.gz"
echo
-e
"# Done ! Now you have to run:"
echo
-e
"git push --tags"
TAGS
=
$(
git tag
-l
|tail
-n2
|sed
':a;N;$!ba;s/\n/../g'
)
TAGS
=
$(
git tag
-l
|
grep
'^v'
|
tail
-n2
|sed
':a;N;$!ba;s/\n/../g'
)
echo
-e
"git log --grep='Merge pull request #' --date-order --pretty='format:- %b'
$TAGS
"
echo
-e
"# Draft new release"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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