From: Stefan Fritsch Date: Tue, 6 Nov 2012 08:27:57 +0000 (+0000) Subject: try to catch up if docs/log-message-tags/next-number is out of date X-Git-Tag: 2.5.0-alpha~6158 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd3e23a28d4662b8363305cec6711924d0a93594;p=thirdparty%2Fapache%2Fhttpd.git try to catch up if docs/log-message-tags/next-number is out of date doing two passes would be even better, will look at that later git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1406069 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/log-message-tags/update-log-msg-tags b/docs/log-message-tags/update-log-msg-tags index ddd245dfb8a..a034fd49ce2 100755 --- a/docs/log-message-tags/update-log-msg-tags +++ b/docs/log-message-tags/update-log-msg-tags @@ -127,6 +127,10 @@ sub note_tag if (exists $tags{$tag}) { print STDERR "WARNING: Duplicate tag $tag at $tags{$tag}->{file}:$tags{$tag}->{line} and $file:$lineno\n"; } + if ($tag >= $serial) { + print STDERR "WARNING: next-number $serial inconsistent with tag $tag at $file:$lineno, adjusting\n"; + $serial = $tag + 1; + } $tags{$tag} = { file => $file, line => $lineno, msg => $oneline }; }