From c07b849e04679b20a6a7aa8898e97df1a7cfb9d6 Mon Sep 17 00:00:00 2001 From: Frederic Marchal Date: Sun, 21 Sep 2014 15:26:20 +0200 Subject: [PATCH] Ensure the ChangeLog has been updated I used to always forget to update the ChangeLog before releasing sarg. It won't happen if the archive script check that the ChangeLog contains an entry for the current version and release date. --- archive.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/archive.sh b/archive.sh index 78d006c..045e5f0 100755 --- a/archive.sh +++ b/archive.sh @@ -55,6 +55,14 @@ if [ "x$ReleaseDate" != "x$ReleaseDateCheck" ] ; then exit 1 fi +# make sure the ChangeLog has been updated +LogEntry=$(sed -n -e "1,5{;/^$ReleaseDate Version $Version$/p;}" $Sources/ChangeLog) +if [ -z "$LogEntry" ] ; then + echo "ChangeLog not up to date" + echo "It should contain an entry for \"$ReleaseDate Version $Version\"" + exit 1 +fi + # update the po files if ( ! make update-po ) ; then echo "Failed to update the po files" -- 2.39.5