From: Bruno Haible Date: Mon, 5 Aug 2024 20:44:54 +0000 (+0200) Subject: build: Avoid "Missing copyright header" error for std-gnu11.m4. X-Git-Tag: v0.23~180 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c449449d7ec8745e45172ebf435791f708b97df;p=thirdparty%2Fgettext.git build: Avoid "Missing copyright header" error for std-gnu11.m4. * check-copyright-headers (func_check_file): Search for the copyright notice in the first 20 lines. --- diff --git a/check-copyright-headers b/check-copyright-headers index 2c6bb273c..5716d2d8a 100755 --- a/check-copyright-headers +++ b/check-copyright-headers @@ -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 () # # 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