[PATCH 1/1] 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)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:02:19 +0000 (10:02 -0800)
30/6108b06eecaf95a0a75bea27d7c69b6ccf3c8c [new file with mode: 0644]

diff --git a/30/6108b06eecaf95a0a75bea27d7c69b6ccf3c8c b/30/6108b06eecaf95a0a75bea27d7c69b6ccf3c8c
new file mode 100644 (file)
index 0000000..0629bc7
--- /dev/null
@@ -0,0 +1,68 @@
+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 14BF2431FAF\r
+       for <notmuch@notmuchmail.org>; Wed,  7 May 2014 12:33:53 -0700 (PDT)\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 NedASPoXttuT for <notmuch@notmuchmail.org>;\r
+       Wed,  7 May 2014 12:33:49 -0700 (PDT)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+       by olra.theworths.org (Postfix) with ESMTP id 94E0E431FAE\r
+       for <notmuch@notmuchmail.org>; Wed,  7 May 2014 12:33:49 -0700 (PDT)\r
+Received: by guru.guru-group.fi (Postfix, from userid 501)\r
+       id 77AB11000F2; Wed,  7 May 2014 22:33:40 +0300 (EEST)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 1/1] devel: news2wiki to recognize yyyy-mm-dd or UNRELEASED as\r
+       release date\r
+Date: Wed,  7 May 2014 22:33:38 +0300\r
+Message-Id: <1399491218-21155-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, 07 May 2014 19:33:53 -0000\r
+\r
+The yyyy-mm-dd (actually \d\d\d\d-\d\d-\d\d) for a bit more restrictive\r
+(and self-documentative) than the \w\w\w\w-... that used to be there and\r
+UNRELEASED so that developers can test the latest NEWS converted to mdwn\r
+format before submitting NEWS patches.\r
+---\r
+ devel/news2wiki.pl | 3 +--\r
+ 1 file changed, 1 insertion(+), 2 deletions(-)\r
+\r
+diff --git a/devel/news2wiki.pl b/devel/news2wiki.pl\r
+index 8066ba7..d966bab 100755\r
+--- a/devel/news2wiki.pl\r
++++ b/devel/news2wiki.pl\r
+@@ -32,8 +32,7 @@ while (<I>)\r
+ {\r
+     warn "$ARGV[0]:$.: tab(s) in line!\n" if /\t/;\r
+     warn "$ARGV[0]:$.: trailing whitespace\n" if /\s\s$/;\r
+-    # The date part in regex recognizes wip version dates like: (201x-xx-xx).\r
+-    if (/^Notmuch\s+(\S+)\s+\((\w\w\w\w-\w\w-\w\w)\)\s*$/) {\r
++    if (/^Notmuch\s+(\S+)\s+\((\d\d\d\d-\d\d-\d\d|UNRELEASED)\)\s*$/) {\r
+       # open O... autocloses previously opened file.\r
+       open O, '>', "$ARGV[1]/release-$1.mdwn" or die $!;\r
+       print "+ release-$1.mdwn...\n";\r
+-- \r
+1.9.0\r
+\r