From 2b612603d35c152a8ba0fc43ed1f7597c02d06c2 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 9 Dec 2018 16:51:29 +0100 Subject: [PATCH] Give an error from build/tools/post-release.sh if it didn't work The script gave a misleading success message even if it didn't find anything to update. --- build/tools/post-release.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/tools/post-release.sh b/build/tools/post-release.sh index dc1ba31a8d..90199a8d89 100755 --- a/build/tools/post-release.sh +++ b/build/tools/post-release.sh @@ -8,6 +8,11 @@ topdir=`dirname $0`/../.. # Build the file list for sha1sums, from `docs/release.md` declare -a files=(`sed -n '/^## Download Verification/,/^## Binaries/p' $topdir/docs/release.md | sed -n -E 's/^\s*0{40}\s{2}(wx.*)/\1/p'`) +if [ -z "$files" ]; then + echo "No lines with SHA-1 sums, has release.md format changed?" >&2 + exit 1 +fi + # Get the release version unless it's given explicitly on the command line. if [ -z $1 ]; then ver_string=`grep '#define wxVERSION_STRING ' $topdir/include/wx/version.h | sed 's/^.*"wxWidgets \(.*\)")/\1/'`