diff options
author | Will Thompson <wjt@endlessm.com> | 2020-04-27 14:05:01 +0100 |
---|---|---|
committer | Will Thompson <wjt@endlessm.com> | 2020-04-27 14:05:01 +0100 |
commit | 696c36a6129f57c395bf8c876a189d196ef2c585 (patch) | |
tree | 83cca7dfc8000a00a9fd48f0a6a566f2cbd57624 /build-aux | |
parent | e2ccc8f68cde84713ec6819d03e648a84da518d9 (diff) | |
download | gnome-initial-setup-696c36a6129f57c395bf8c876a189d196ef2c585.tar.gz |
build: use git-evtag if available
Thanks to Philip Withnall for the suggestion
Diffstat (limited to 'build-aux')
-rwxr-xr-x | build-aux/maintainer-upload-release | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/build-aux/maintainer-upload-release b/build-aux/maintainer-upload-release index 8da13d2..3893c5b 100755 --- a/build-aux/maintainer-upload-release +++ b/build-aux/maintainer-upload-release @@ -17,7 +17,13 @@ pushd "$MESON_SOURCE_ROOT" echo "Project version $project_version does not match branch $branch" >&2 exit 1 fi - git tag -s "$project_version" -m "Version $project_version" + if type git-evtag &>/dev/null; then + # Can't specify tag message on command line + # https://github.com/cgwalters/git-evtag/issues/9 + EDITOR=true git evtag sign "$project_version" + else + git tag -s "$project_version" -m "Version $project_version" + fi git push --atomic origin "$branch" "$project_version" popd |