Source-Changes-HG archive

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

[src/trunk]: src/distrib/notes/common Special-case badly worded ad clause in ...



details:   https://anonhg.NetBSD.org/src/rev/ba46da7d4371
branches:  trunk
changeset: 846858:ba46da7d4371
user:      uwe <uwe%NetBSD.org@localhost>
date:      Tue Dec 03 02:10:26 2019 +0000

description:
Special-case badly worded ad clause in src/sys/lib/libkern/rngtest.c

diffstat:

 distrib/notes/common/extract-contrib-string.pl |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r e1753032801a -r ba46da7d4371 distrib/notes/common/extract-contrib-string.pl
--- a/distrib/notes/common/extract-contrib-string.pl    Tue Dec 03 01:56:10 2019 +0000
+++ b/distrib/notes/common/extract-contrib-string.pl    Tue Dec 03 02:10:26 2019 +0000
@@ -151,7 +151,17 @@
                print "2> $_" if $debug;
                
                $msg="";
-               $msg = $_ if ($fn =~ m,$known_bad_clause_3_wording, and /``/);
+
+               if ($fn =~ m,$known_bad_clause_3_wording, and /``/) {
+                   $msg = $_;
+               }
+               elsif (/:\s+This product/) {
+                   # src/sys/lib/libkern/rngtest.c - bad clause 3 wording
+                   # that is not like others, so special case it here
+                   $msg = $_;
+                   $msg =~ s/^.*:\s+(This product.*)$/$1/;
+               }
+
                $cnt=0;
                $_=<F>;
                while(!/$ack_endline/i) {



Home | Main Index | Thread Index | Old Index