]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Ensure the ChangeLog has been updated
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Sun, 21 Sep 2014 13:26:20 +0000 (15:26 +0200)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Sun, 21 Sep 2014 14:00:58 +0000 (16:00 +0200)
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

index 78d006c219e20ad187e3ff47616367ca673b1c38..045e5f07d9e6fab7473096a4bbb9d91c2e3fe672 100755 (executable)
@@ -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"