]> git.notmuchmail.org Git - notmuch/commitdiff
devel: news2wiki to recognize yyyy-mm-dd or UNRELEASED as release date
authorTomi Ollila <tomi.ollila@iki.fi>
Wed, 7 May 2014 19:33:38 +0000 (22:33 +0300)
committerDavid Bremner <david@tethera.net>
Sun, 13 Jul 2014 15:35:37 +0000 (12:35 -0300)
The yyyy-mm-dd (actually \d\d\d\d-\d\d-\d\d) for a bit more restrictive
(and self-documentative) than the \w\w\w\w-... that used to be there and
UNRELEASED so that developers can test the latest NEWS converted to mdwn
format before submitting NEWS patches.

devel/news2wiki.pl

index 8066ba7feb74a5147a8a32c8a39b21fb3b6261c1..d966babfbc173feaf7b3c066e48ec70fbe478c86 100755 (executable)
@@ -32,8 +32,7 @@ while (<I>)
 {
     warn "$ARGV[0]:$.: tab(s) in line!\n" if /\t/;
     warn "$ARGV[0]:$.: trailing whitespace\n" if /\s\s$/;
-    # The date part in regex recognizes wip version dates like: (201x-xx-xx).
-    if (/^Notmuch\s+(\S+)\s+\((\w\w\w\w-\w\w-\w\w)\)\s*$/) {
+    if (/^Notmuch\s+(\S+)\s+\((\d\d\d\d-\d\d-\d\d|UNRELEASED)\)\s*$/) {
        # open O... autocloses previously opened file.
        open O, '>', "$ARGV[1]/release-$1.mdwn" or die $!;
        print "+ release-$1.mdwn...\n";