From 30c4d7101f584ee654c9f22fb9865504db80db1f Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Fri, 10 Apr 2026 09:08:33 +0200 Subject: [PATCH] projects-dir.mk: list-files: Don't use /usr/bin/file /usr/bin/file | grep text is used to detect if a file is a text file or not. Replace that with grep -I., because that adds some files left out by /usr/bin/file, notably systemd service files. Signed-off-by: Jan Lindemann --- make/projects-dir.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make/projects-dir.mk b/make/projects-dir.mk index fc724060..132af1bc 100644 --- a/make/projects-dir.mk +++ b/make/projects-dir.mk @@ -221,7 +221,7 @@ list-files: $(TEXT_FILES_CACHE): $(Q)make -s text-files-update text-files-update: - make -s --no-print-directory list-files | tr '\n' '\0' | xargs -0 file -N | sed "/:.*text/I !d; s/:.*//" > $(TEXT_FILES_CACHE).tmp + make -s --no-print-directory list-files | tr '\n' '\0' | xargs -0 grep -d skip -Il . > $(TEXT_FILES_CACHE).tmp 2>/dev/null || true mv $(TEXT_FILES_CACHE).tmp $(TEXT_FILES_CACHE) text-files-update-all: $(Q)PROJECTS_TXT= make text-files-update