]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
build: Avoid "Missing copyright header" error for std-gnu11.m4.
authorBruno Haible <bruno@clisp.org>
Mon, 5 Aug 2024 20:44:54 +0000 (22:44 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 5 Aug 2024 20:44:54 +0000 (22:44 +0200)
* check-copyright-headers (func_check_file): Search for the copyright notice
in the first 20 lines.

check-copyright-headers

index 2c6bb273c90531719c12846dc25f95831efaedae..5716d2d8af33ac9a070e490f2a5e9f5ff5b8e936 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# Copyright (C) 2019-2022 Free Software Foundation, Inc.
+# Copyright (C) 2019-2024 Free Software Foundation, Inc.
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -231,7 +231,7 @@ func_check_file ()
 
   # <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
   # says that the (C) "can be omitted entirely; the word ‘Copyright’ suffices.
-  if head -n 15 "$dir/$1" | LC_ALL=C grep 'Copyright .* Free Software Foundation' >/dev/null; then
+  if head -n 20 "$dir/$1" | LC_ALL=C grep 'Copyright .* Free Software Foundation' >/dev/null; then
     # The file has a copyright header.
     return 0
   fi