From: Tomi Ollila Date: Wed, 7 May 2014 19:33:38 +0000 (+0300) Subject: [PATCH 1/1] devel: news2wiki to recognize yyyy-mm-dd or UNRELEASED as release date X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b7410f5d42183b4c12085c0bf6034250b31d3dc8;p=notmuch-archives.git [PATCH 1/1] devel: news2wiki to recognize yyyy-mm-dd or UNRELEASED as release date --- diff --git a/30/6108b06eecaf95a0a75bea27d7c69b6ccf3c8c b/30/6108b06eecaf95a0a75bea27d7c69b6ccf3c8c new file mode 100644 index 000000000..0629bc70a --- /dev/null +++ b/30/6108b06eecaf95a0a75bea27d7c69b6ccf3c8c @@ -0,0 +1,68 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 14BF2431FAF + for ; Wed, 7 May 2014 12:33:53 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id NedASPoXttuT for ; + Wed, 7 May 2014 12:33:49 -0700 (PDT) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by olra.theworths.org (Postfix) with ESMTP id 94E0E431FAE + for ; Wed, 7 May 2014 12:33:49 -0700 (PDT) +Received: by guru.guru-group.fi (Postfix, from userid 501) + id 77AB11000F2; Wed, 7 May 2014 22:33:40 +0300 (EEST) +From: Tomi Ollila +To: notmuch@notmuchmail.org +Subject: [PATCH 1/1] devel: news2wiki to recognize yyyy-mm-dd or UNRELEASED as + release date +Date: Wed, 7 May 2014 22:33:38 +0300 +Message-Id: <1399491218-21155-1-git-send-email-tomi.ollila@iki.fi> +X-Mailer: git-send-email 1.8.0 +Cc: tomi.ollila@iki.fi +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Wed, 07 May 2014 19:33:53 -0000 + +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 | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/devel/news2wiki.pl b/devel/news2wiki.pl +index 8066ba7..d966bab 100755 +--- a/devel/news2wiki.pl ++++ b/devel/news2wiki.pl +@@ -32,8 +32,7 @@ while () + { + 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"; +-- +1.9.0 +