mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-14 20:18:39 +00:00
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:
parent
b533bef8cd
commit
3f6f7b06c6
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue