Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/public-domain/tz Change the NEWS parser to handle t...



details:   https://anonhg.NetBSD.org/src/rev/ddf3c1e570d2
branches:  trunk
changeset: 369419:ddf3c1e570d2
user:      kre <kre%NetBSD.org@localhost>
date:      Tue Aug 16 13:23:12 2022 +0000

description:
Change the NEWS parser to handle the more recent (as in going back several
years now) format (wording) that is used there, rather than that which
preceded it.   With this we get the intended "what changed" in the generated
CVS commit message, rather than lots of emptiness.

diffstat:

 external/public-domain/tz/tzdata2netbsd |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (26 lines):

diff -r 63e68c4bc9e9 -r ddf3c1e570d2 external/public-domain/tz/tzdata2netbsd
--- a/external/public-domain/tz/tzdata2netbsd   Tue Aug 16 13:19:41 2022 +0000
+++ b/external/public-domain/tz/tzdata2netbsd   Tue Aug 16 13:23:12 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: tzdata2netbsd,v 1.13 2022/08/16 13:19:41 kre Exp $
+# $NetBSD: tzdata2netbsd,v 1.14 2022/08/16 13:23:12 kre Exp $
 
 # For use by NetBSD developers when updating to new versions of tzdata.
 #
@@ -467,11 +467,11 @@
                                " ("date"):";
                }
                /^$/ { blankline = 1; havesentence = 0; }
-               /^  Changes affecting/ { goodsection = 0; }
-               /^  Changes affecting.*time/ { goodsection = 1; }
-               /^  Changes affecting.*data/ { goodsection = 1; }
-               /^  Changes affecting.*documentation/ || \
-               /^  Changes affecting.*commentary/ {
+               /^  Changes / { goodsection = 0; }
+               /^  Changes to future timestamps/ { goodsection = 1; }
+               /^  Changes to past timestamps/ { goodsection = 1; }
+               /^  Changes to documentation/ || \
+               /^  Changes to commentary/ {
                        t = gensub("^ *", "", 1, $0);
                        t = gensub("\\.*$", ".", 1, t);
                        print bullet t;



Home | Main Index | Thread Index | Old Index