git: deeda8abd5e8 - main - Makefile.inc1: Cleanup manpages for arches not included in MAN_ARCH
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 12 Jun 2025 19:56:44 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=deeda8abd5e8100beae745ebf8965c6f61bd108d
commit deeda8abd5e8100beae745ebf8965c6f61bd108d
Author: Ricardo Branco <rbranco@suse.de>
AuthorDate: 2024-06-19 21:43:38 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2025-06-12 19:55:56 +0000
Makefile.inc1: Cleanup manpages for arches not included in MAN_ARCH
Apply the fixes to cleanup the compressed or uncompressed man pages to
arches not in MAN_ARCH as well.
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1295
Closes: https://github.com/freebsd/freebsd-src/pull/1295
---
Makefile.inc1 | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/Makefile.inc1 b/Makefile.inc1
index 157be6dfdfc6..42a5f5cfb0a9 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -3530,6 +3530,13 @@ delete-old-files: .PHONY
rm ${RM_I} $${manpage} <&3; \
fi; \
done
+.endif
+.if !empty(MAN_ARCH) && ${MAN_ARCH} != "all"
+ @exec 3<&0; \
+ find -E /usr/share/man/man4/ -mindepth 1 -type d ! -regex '.*/(${MAN_ARCH:C/[[:space:]]+/|/gW})' | \
+ while read dir; do \
+ find $$dir ! -type d -exec rm ${RM_I} {} + <&3; \
+ done
.endif
@echo ">>> Old files removed"
@@ -3573,6 +3580,12 @@ check-old-files: .PHONY
fi; \
done | sort
.endif
+.if !empty(MAN_ARCH) && ${MAN_ARCH} != "all"
+ @find -E /usr/share/man/man4/ -mindepth 1 -type d ! -regex '.*/(${MAN_ARCH:C/[[:space:]]+/|/gW})' | \
+ while read dir; do \
+ find $$dir ! -type d; \
+ done | sort
+.endif
list-old-libs: .PHONY
@cd ${.CURDIR}; \