From: Yann Ylavic Date: Sun, 20 Oct 2019 16:33:45 +0000 (+0000) Subject: Put intended duplicates AHs in their own file (outside the script). X-Git-Tag: 2.5.0-alpha2-ci-test-only~1858 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0359de098a8c235d2d0b57de6e60fde3bdf510d6;p=thirdparty%2Fapache%2Fhttpd.git Put intended duplicates AHs in their own file (outside the script). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1868662 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/log-message-tags/intended-duplicates b/docs/log-message-tags/intended-duplicates new file mode 100644 index 00000000000..f1811e46483 --- /dev/null +++ b/docs/log-message-tags/intended-duplicates @@ -0,0 +1 @@ +01241 # mod_cgid's cgid_child_errfn() diff --git a/docs/log-message-tags/update-log-msg-tags b/docs/log-message-tags/update-log-msg-tags index 00442f08bbb..7eeebace0e9 100755 --- a/docs/log-message-tags/update-log-msg-tags +++ b/docs/log-message-tags/update-log-msg-tags @@ -10,9 +10,13 @@ my $orig_serial = $serial; my %tags; my %intended_duplicate_tags; - -# mod_cgid's cgid_child_errfn() -$intended_duplicate_tags{"01241"} = "true"; +if (open(my $fh, "<", "$basedir/intended-duplicates")) { + while (my $line = <$fh>) { + if ($line =~ /^(\d+)\b/) { + $intended_duplicate_tags{$1} = "true"; + } + } +} foreach my $file (@ARGV) { if ($file !~ /\.c$/) {