git: 9b91d4905583 - stable/15 - makeman.lua: Update for src.conf in the src tree

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Tue, 20 Jan 2026 16:52:56 UTC
The branch stable/15 has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=9b91d490558342d4a4a0893b15306c7099430c66

commit 9b91d490558342d4a4a0893b15306c7099430c66
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2025-12-16 16:04:31 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-01-20 16:50:09 +0000

    makeman.lua: Update for src.conf in the src tree
    
    Copy the text change from the shell makeman to makeman.lua.
    
    Fixes: dd8c666d8b78 ("src.sys.mk: Support src.conf in SRCTOP")
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit 2619d439fa860db734dbbf4b153c5ac9b15c7e49)
---
 tools/build/options/makeman.lua | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/tools/build/options/makeman.lua b/tools/build/options/makeman.lua
index e96e6f50174b..7ce919f7a8de 100644
--- a/tools/build/options/makeman.lua
+++ b/tools/build/options/makeman.lua
@@ -44,8 +44,11 @@ variables that control the aspects of how the system builds.
 .Pp
 The default location of
 .Nm
-is
-.Pa /etc/src.conf ,
+is the top level of the source tree, or
+.Pa /etc/src.conf
+if no
+.Nm
+is found in the source tree itself,
 though an alternative location can be specified in the
 .Xr make 1
 variable