From: Tomi Ollila <tomi.ollila@iki.fi>
To: notmuch@notmuchmail.org
Cc: tomi.ollila@iki.fi
Subject: [PATCH 1/1] devel/release-checks.sh: added check that 1st NEWS header is tidy
Date: Wed, 30 Jan 2013 17:01:35 +0200 [thread overview]
Message-ID: <1359558095-22923-1-git-send-email-tomi.ollila@iki.fi> (raw)
Check that the underlining '===...' for first (header) line in NEWS
file is of the same length as the header text and it is all '=':s.
---
devel/release-checks.sh | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/devel/release-checks.sh b/devel/release-checks.sh
index d2bbc6a..c13758a 100755
--- a/devel/release-checks.sh
+++ b/devel/release-checks.sh
@@ -104,6 +104,20 @@ else
append_emsg "Version '$py_version' is not '$VERSION' in $PV_FILE"
fi
+echo -n "Checking that NEWS header is tidy... "
+if [ "`exec sed 's/./=/g; 1q' NEWS`" = "`exec sed '1d; 2q' NEWS`" ]
+then
+ echo Yes.
+else
+ echo No.
+ if [ "`exec sed '1d; s/=//g; 2q' NEWS`" != '' ]
+ then
+ append_emsg "Line 2 in NEWS file is not all '=':s"
+ else
+ append_emsg "Line 2 in NEWS file does not have the same length as line 1"
+ fi
+fi
+
echo -n "Checking that this is Notmuch NEWS... "
read news_notmuch news_version news_date < NEWS
if [ "$news_notmuch" = "Notmuch" ]
--
1.8.1
next reply other threads:[~2013-01-30 15:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-30 15:01 Tomi Ollila [this message]
2013-02-16 11:44 ` [PATCH 1/1] devel/release-checks.sh: added check that 1st NEWS header is tidy David Bremner
2013-02-18 16:25 ` Tomi Ollila
2013-02-19 1:11 ` David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1359558095-22923-1-git-send-email-tomi.ollila@iki.fi \
--to=tomi.ollila@iki.fi \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).