From: Tomi Ollila <tomi.ollila@iki.fi>
To: notmuch@notmuchmail.org
Cc: Tomi Ollila <tomi.ollila@iki.fi>
Subject: [PATCH 1/2] Makefile.local: added checks for latest NEWS title
Date: Sat, 26 May 2012 18:22:24 +0300 [thread overview]
Message-ID: <1338045745-18409-1-git-send-email-tomi.ollila@iki.fi> (raw)
Added target `verify-version-news` which checks that the first line
in NEWS file has the following properties:
First word is 'Notmuch'
Second "word" matches the current version
Rest of line is in format (201[2-9]-[01][0-9]-[0-3][0-9]
---
Tested by executing the following commands:
make verify-version-news
make verify-version-news VERSION=0.13
make verify-version-news VERSION=0.12
Makefile.local | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/Makefile.local b/Makefile.local
index 53b4a0d..1b34c00 100644
--- a/Makefile.local
+++ b/Makefile.local
@@ -220,6 +220,21 @@ verify-version-python: verify-version-components
echo "Please edit version and $(PV_FILE) to have consistent versions." && false)
@echo "Good."
+.PHONY: verify-version-news
+verify-version-news: verify-version-components
+ @read notmuch version date < NEWS ;\
+ ev=0 ;\
+ echo -n "Checking that this is 'Notmuch' NEWS..." ;\
+ if [ "$$notmuch" = 'Notmuch' ]; then echo 'Good.' ;\
+ else echo 'No.'; ev=1; fi ;\
+ echo -n "Checking that NEWS version is $(VERSION)..." ;\
+ if [ "$$version" = '$(VERSION)' ]; then echo 'Good.' ;\
+ else echo 'No.'; ev=1; fi ;\
+ echo -n "Checking that NEWS date is in correct format..." ;\
+ case $$date in '('201[2-9]-[0-1][0-9]-[0-3][0-9]')') echo 'Good.' ;;\
+ *) echo 'No.'; ev=1; esac ;\
+ if [ $$ev -ne 0 ]; then echo "Please edit NEWS file to have Notmuch header line in correct format."; false; fi
+
.PHONY: verify-version-components
verify-version-components:
@echo -n "Checking that $(VERSION) consists only of digits and periods..."
--
1.7.1
next reply other threads:[~2012-05-26 15:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-26 15:22 Tomi Ollila [this message]
2012-05-26 15:22 ` [PATCH 2/2] Makefile.local: added verify-version-news to verify-no-dirty-code deps Tomi Ollila
2012-05-26 17:17 ` [PATCH 1/2] Makefile.local: added checks for latest NEWS title 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=1338045745-18409-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).