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-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0359de098a8c235d2d0b57de6e60fde3bdf510d6;p=apache 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 0000000000..f1811e4648 --- /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 00442f08bb..7eeebace0e 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$/) {