contrib/rpm: log MD5/SHA sums of release tarball during build_clean.sh

When doing a release, we should care about the checksum of the tarball.
Log all of them... also, because fedpkg uses sha512, ftpadmin@gnome uses
sha256, etc.
This commit is contained in:
Thomas Haller 2020-05-08 14:42:37 +02:00
parent b533bef8cd
commit 3f6f7b06c6
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728
2 changed files with 10 additions and 0 deletions

View file

@ -226,3 +226,10 @@ else
LOG
fi
if [[ "$DO_RELEASE" == 1 ]]; then
LOG "RELEASE \"$SOURCE\" :"
for c in md5 sha1 sha256 sha512; do
LOG "$(printf '%8s: %s' "$c" $("${c}sum" "$SOURCE" | sed 's/ .*//'))"
done
LOG
fi

View file

@ -44,6 +44,7 @@ NO_DIST=0
WITH_LIST=()
SOURCE_FROM_GIT=0
SNAPSHOT="$NM_BUILD_SNAPSHOT"
DO_RELEASE=0
ADD_WITH_TEST=1
@ -64,6 +65,7 @@ while [[ $# -gt 0 ]]; do
[[ $NARGS -eq 1 ]] || die "--release option must be alone"
export NMTST_CHECK_GTK_DOC=1
BUILDTYPE=SRPM
DO_RELEASE=1
;;
-c|--clean)
GIT_CLEAN=1
@ -173,6 +175,7 @@ export SOURCE_FROM_GIT
export BUILDTYPE
export NM_RPMBUILD_ARGS="${WITH_LIST[@]}"
export SNAPSHOT
export DO_RELEASE
"$SCRIPTDIR"/build.sh