]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: avoid sc_gitignore_missing failure
authorPádraig Brady <P@draigBrady.com>
Mon, 12 May 2025 22:20:43 +0000 (23:20 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 12 May 2025 22:20:43 +0000 (23:20 +0100)
* .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
cfg.mk

index f4a17ad0443c05bca76ed09f6cc08a3a4225e560..bafeb2bc51c8b91231689af367ce8b6cc7c3dfc5 100644 (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
diff --git a/cfg.mk b/cfg.mk
index 94bd46441fc19f064865b6aebbdaf952f7fe9db3..e147d4ae7da91db466f6e905a44795e3839df79a 100644 (file)
--- 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; } || :