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
This commit is contained in:
Pádraig Brady 2025-05-12 23:20:43 +01:00
parent a11c7dcaaf
commit bd8be6b99e
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View File

@ -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

3
cfg.mk
View File

@ -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; } || :