[PATCH 1/1] devel/release-checks.sh: added check that 1st NEWS header is tidy
authorTomi Ollila <tomi.ollila@iki.fi>
Wed, 30 Jan 2013 15:01:35 +0000 (17:01 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:53:26 +0000 (09:53 -0800)
20/d98a2d2d4f3578039acc0eb603bc0c008d60ab [new file with mode: 0644]

diff --git a/20/d98a2d2d4f3578039acc0eb603bc0c008d60ab b/20/d98a2d2d4f3578039acc0eb603bc0c008d60ab
new file mode 100644 (file)
index 0000000..cabc1a9
--- /dev/null
@@ -0,0 +1,77 @@
+Return-Path: <too@guru-group.fi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 059B5431FAF\r
+       for <notmuch@notmuchmail.org>; Wed, 30 Jan 2013 07:01:50 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id pCKEsC3gsAwP for <notmuch@notmuchmail.org>;\r
+       Wed, 30 Jan 2013 07:01:49 -0800 (PST)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+       by olra.theworths.org (Postfix) with ESMTP id 07163431FAE\r
+       for <notmuch@notmuchmail.org>; Wed, 30 Jan 2013 07:01:48 -0800 (PST)\r
+Received: by guru.guru-group.fi (Postfix, from userid 501)\r
+       id 23C4710009D; Wed, 30 Jan 2013 17:01:37 +0200 (EET)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 1/1] devel/release-checks.sh: added check that 1st NEWS header\r
+       is tidy\r
+Date: Wed, 30 Jan 2013 17:01:35 +0200\r
+Message-Id: <1359558095-22923-1-git-send-email-tomi.ollila@iki.fi>\r
+X-Mailer: git-send-email 1.8.0\r
+Cc: tomi.ollila@iki.fi\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 30 Jan 2013 15:01:50 -0000\r
+\r
+Check that the underlining '===...' for first (header) line in NEWS\r
+file is of the same length as the header text and it is all '=':s.\r
+---\r
+ devel/release-checks.sh | 14 ++++++++++++++\r
+ 1 file changed, 14 insertions(+)\r
+\r
+diff --git a/devel/release-checks.sh b/devel/release-checks.sh\r
+index d2bbc6a..c13758a 100755\r
+--- a/devel/release-checks.sh\r
++++ b/devel/release-checks.sh\r
+@@ -104,6 +104,20 @@ else\r
+       append_emsg "Version '$py_version' is not '$VERSION' in $PV_FILE"\r
+ fi\r
\r
++echo -n "Checking that NEWS header is tidy... "\r
++if [ "`exec sed 's/./=/g; 1q' NEWS`" = "`exec sed '1d; 2q' NEWS`" ]\r
++then\r
++      echo Yes.\r
++else\r
++      echo No.\r
++      if [ "`exec sed '1d; s/=//g; 2q' NEWS`" != '' ]\r
++      then\r
++              append_emsg "Line 2 in NEWS file is not all '=':s"\r
++      else\r
++              append_emsg "Line 2 in NEWS file does not have the same length as line 1"\r
++      fi\r
++fi\r
++\r
+ echo -n "Checking that this is Notmuch NEWS... "\r
+ read news_notmuch news_version news_date < NEWS\r
+ if [ "$news_notmuch" = "Notmuch" ]\r
+-- \r
+1.8.1\r
+\r