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
7e0496f1
Commit
7e0496f1
authored
Mar 06, 2018
by
Guilhem Saurel
Browse files
improve release script
parent
3166fa22
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/release.sh
View file @
7e0496f1
...
...
@@ -3,16 +3,24 @@
set
-x
set
-e
[[
-x
cmake/git-archive-all.sh
]]
TAG
=
$1
SOFT
=
${
2
:-
$(
basename
$(
pwd
))
}
SOFTAG
=
"
${
SOFT
}
-
${
TAG
}
"
echo
Releasing
$SOFT
$T
AG
echo
Releasing
$SOFTAG
rm
-vf
*
.tar
*
/tmp/
*
.tar
*
git tag
-u
$KEY
-s
"v
$TAG
"
-m
"Release v
$TAG
"
./cmake/git-archive-all.sh
--prefix
"
${
SOFT
}
-
${
TAG
}
/"
-v
"
${
SOFT
}
-
${
TAG
}
.tar"
gzip
"
${
SOFT
}
-
${
TAG
}
.tar"
gpg
--armor
--detach-sign
"
${
SOFT
}
-
${
TAG
}
.tar.gz"
git push
--tags
git tag
-s
"v
$TAG
"
-m
"Release v
$TAG
"
if
[[
-d
cmake
&&
-x
cmake/git-archive-all.sh
]]
then
./cmake/git-archive-all.sh
--prefix
"
${
SOFTAG
}
/"
-v
"
${
SOFTAG
}
.tar"
gzip
"
${
SOFTAG
}
.tar"
else
git archive
--format
=
tar.gz
--prefix
=
"
${
SOFTAG
}
/"
HEAD
>
${
SOFTAG
}
.tar.gz
fi
gpg
--armor
--detach-sign
"
${
SOFTAG
}
.tar.gz"
echo
-e
"git push --tags
git log --pretty=oneline
$(
git tag
-l
|tail
-n2
|sed
':a;N;$!ba;s/\n/../g'
)
| sed 's/.
\{
48
\}
/*/'
# 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