Include signed version in release package.
This commit is contained in:
parent
a4ab3c7bc9
commit
b810c1032b
1
.gitignore
vendored
1
.gitignore
vendored
@ -32,6 +32,7 @@ Press/MasterPassword_PressKit/MasterPassword_pressrelease_*.pdf
|
||||
MasterPassword/Java/**/target
|
||||
|
||||
# C
|
||||
MasterPassword/C/VERSION
|
||||
MasterPassword/C/*.o
|
||||
MasterPassword/C/mpw-*.tar.gz
|
||||
MasterPassword/C/mpw
|
||||
|
@ -2,7 +2,12 @@
|
||||
set -e
|
||||
|
||||
cd "${BASH_SOURCE%/*}"
|
||||
mpwArchive=mpw-$(git describe --tags --long --dirty).tar.gz
|
||||
tag=$(git describe)
|
||||
commit=$(git describe --long --dirty)
|
||||
[[ $tag && $commit = $tag-* ]] || exit 1
|
||||
git show --show-signature --pretty=format:%H --quiet "$tag" > VERSION
|
||||
|
||||
mpwArchive=mpw-$commit.tar.gz
|
||||
[[ -e $mpwArchive ]] && echo "WARNING: $mpwArchive already exists. Will overwrite."
|
||||
read -n1 -p "Will prepare and release $mpwArchive. Press a key to continue or ^C to abort."
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user