]> granicus.if.org Git - apache/commitdiff
Put intended duplicates AHs in their own file (outside the script).
authorYann Ylavic <ylavic@apache.org>
Sun, 20 Oct 2019 16:33:45 +0000 (16:33 +0000)
committerYann Ylavic <ylavic@apache.org>
Sun, 20 Oct 2019 16:33:45 +0000 (16:33 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1868662 13f79535-47bb-0310-9956-ffa450edef68

docs/log-message-tags/intended-duplicates [new file with mode: 0644]
docs/log-message-tags/update-log-msg-tags

diff --git a/docs/log-message-tags/intended-duplicates b/docs/log-message-tags/intended-duplicates
new file mode 100644 (file)
index 0000000..f1811e4
--- /dev/null
@@ -0,0 +1 @@
+01241 # mod_cgid's cgid_child_errfn()
index 00442f08bbb9ddaae162e06f3edd1971b9442ad3..7eeebace0e99a84071353cda43a915bb19f739ee 100755 (executable)
@@ -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$/) {