From bd8be6b99ed73df0e055ba4e12bbf78c41a472c6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?= Date: Mon, 12 May 2025 23:20:43 +0100 Subject: [PATCH] maint: avoid sc_gitignore_missing failure * .gitignore: Add the soon to be generated lib/fts_.h * cfg.mk (sc_gitignore_missing): Special case the mapping of fts.in.h to fts_.h. Fixes https://bugs.gnu.org/78398 --- .gitignore | 1 + cfg.mk | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index f4a17ad044..bafeb2bc51 100644 --- a/.gitignore +++ b/.gitignore @@ -69,6 +69,7 @@ /lib/fcntl.h /lib/float.h /lib/fnmatch.h +/lib/fts_.h /lib/getopt-cdefs.h /lib/getopt.h /lib/glthread diff --git a/cfg.mk b/cfg.mk index 94bd46441f..e147d4ae7d 100644 --- a/cfg.mk +++ b/cfg.mk @@ -812,7 +812,8 @@ sc_fs-magic-compare: sc_gitignore_missing: @{ sed -n '/^\/lib\/.*\.h$$/{p;p}' $(srcdir)/.gitignore; \ find lib -name '*.in*' ! -name '*~' ! -name 'sys_*' | \ - sed 's|^|/|; s|_\(.*in\.h\)|/\1|; s/\.in//'; } | \ + sed 's|^|/|; s|_\(.*in\.h\)|/\1|; s/\.in//' | \ + sed 's|/fts\.h$$|/fts_.h|'; } | \ sort | uniq -u | grep . && { echo '$(ME): Add above' \ 'entries to .gitignore' >&2; exit 1; } || : -- 2.47.3