2
0

Include signed version in release package.

This commit is contained in:
Maarten Billemont 2014-10-18 15:56:31 -04:00
parent a4ab3c7bc9
commit b810c1032b
2 changed files with 7 additions and 1 deletions

1
.gitignore vendored
View File

@ -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

View File

@ -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."