From 9c449449d7ec8745e45172ebf435791f708b97df Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 5 Aug 2024 22:44:54 +0200 Subject: [PATCH] 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. --- check-copyright-headers | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.3