]> git.eshelyaron.com Git - emacs.git/commitdiff
* make-dist: Check a release has a ChangeLog with a release notice.
authorGlenn Morris <rgm@gnu.org>
Wed, 7 Jun 2017 17:41:46 +0000 (13:41 -0400)
committerGlenn Morris <rgm@gnu.org>
Wed, 7 Jun 2017 17:41:46 +0000 (13:41 -0400)
make-dist

index 0e012071640905a33ffc74fc8c45586b9d589aaf..1b4eae3e7db05657855f1f58989ab085d58404b6 100755 (executable)
--- a/make-dist
+++ b/make-dist
@@ -297,6 +297,21 @@ if [ $check = yes ]; then
       make --question info || error=yes
   fi
 
+  ## Is this a release?
+  case $version in
+      [1-9][0-9].[0-9])
+          if [ -e ChangeLog ]; then
+              if ! grep -q "Version $version released" ChangeLog; then
+                  echo "No release notice in ChangeLog"
+                  error=yes
+              fi
+          else
+              echo "A release must have a ChangeLog"
+              error=yes
+          fi
+      ;;
+  esac
+
   if [ $error = yes ]; then
       echo "Failed checks" >&2
       exit 1