From nobody Thu Jun 12 19:56:44 2025 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bJCwF0LDMz5yKtm; Thu, 12 Jun 2025 19:56:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bJCwD521bz3lnf; Thu, 12 Jun 2025 19:56:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1749758204; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iXIGo9rkxPD3XtjzZ2xMgsBjBeUzNbAOHf3+aGBjicI=; b=cu6dOXI+oj/gnxDupRwHoOmw6bOCQ4DYV6UZwSvaSKFhnWomAiX9hLQjCD4b3PxuozGasR 95sVKkMMyzio+eNg6X8bEDX0f4CzpimuzO7q0TKhj+MBlHD45JzdiS00PJmlsxZO72ql+k QX3I2wy5euj0B7FQqVOCnAu4TBg6tlrON0OvC/f9tcJsJ2WE50QKIATimeR/sa2d0BumDB EO1O4VmWw+te33Qpkz8I1BVZ+CAPIrCbJ5qna6nHIvpZrbnEM3g7j7UW0mYNGzvi9b8PWQ NoLE1U+5NduxMcjEOArLGvkSP8yC2s7FbadMIcpFae7GWkqgyvRSiU/OdqSpww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1749758204; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iXIGo9rkxPD3XtjzZ2xMgsBjBeUzNbAOHf3+aGBjicI=; b=B/CtZOB+xvWy/HvQzptP7rnfSD7HVHgXH2MSMbZ+dKyHCbn2zNpLKPtWC8uRqXKaACxst6 CVzptrjx9gXwfT8rZjzzQoY1KUl+OZDv+OCyoLM8OPtIVafmu6T9vnOnigFBFNa5R24hZm WIjs60XvU5+O2AXWAlTACVug1+k6JTAeYU/TuESyBzcZK+z027N4XtRCB5n4Ri3L7F3Fpm s3QvZRS3PqVH3PlIbUegpZ0mBCqCBmJYPlw4dOb37JeYNrb9PQgx5KJwWMqW6b9RXUY6k9 jBxO92eYdmTPz270WFshxCaRx0tzCx9Z1vcXnQnmh7hx9VBbkSXn8FIVi/FlZA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1749758204; a=rsa-sha256; cv=none; b=MuzPvO6/bCtb4srjOJTIVZ+22mIswSkp34Msn7QBEOyV0rHuAKJ/KEPJu89EiwdgH5JsFm renAwO8Wx1FP3moYlte8QObRrmSAC6r1WYGxLpaevcIs+bOBTO8jvkNsLtaoJtk8U28AgB 2e1WpCQfOAj2BPSDGeXfU7SKmcMiBTIpDxDvuRpmQhgOlO1HXCGY2dv8Zf7/l4jp4PCrK9 4wF3AyFH/NjoZIp7BisQ/BzMH61TpMfbYmoFFkcgFmanEzCrv9z8t+SjDyRtGYmqZ8Megx gZC6nKz5x6/ASy/P6IE41EOXmpzbdzPFRN7C2vAxNv1yCcXDXzW/1Ov7SZqgkA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4bJCwD4RkXzBH9; Thu, 12 Jun 2025 19:56:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 55CJuii3074423; Thu, 12 Jun 2025 19:56:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 55CJuiFe074420; Thu, 12 Jun 2025 19:56:44 GMT (envelope-from git) Date: Thu, 12 Jun 2025 19:56:44 GMT Message-Id: <202506121956.55CJuiFe074420@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: deeda8abd5e8 - main - Makefile.inc1: Cleanup manpages for arches not included in MAN_ARCH List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: deeda8abd5e8100beae745ebf8965c6f61bd108d Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=deeda8abd5e8100beae745ebf8965c6f61bd108d commit deeda8abd5e8100beae745ebf8965c6f61bd108d Author: Ricardo Branco AuthorDate: 2024-06-19 21:43:38 +0000 Commit: Warner Losh 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}; \