makeman.lua: catch up to REQUIRED_OPTIONS change

161f8edc65 ("bsd.mkopt.mk: Prepare a list of all build options")
restructured things and now we should simply strip the leading double
underbar.  This fixes the oddity noticed in
4ed20e0236 ("kshim/usb: Add build option."), where WITH_CASPER made
a surprise appearance.

This is a part of D56558, but not the meat of the change.

Reviewed by:	emaste, imp
This commit is contained in:
Kyle Evans
2026-04-21 21:29:07 -05:00
parent 0f89380a3d
commit 8bbba9f681
+1 -1
View File
@@ -309,7 +309,7 @@ end
local function required_options()
local output = run_make({"-f", "share/mk/src.opts.mk", "-V",
"__REQUIRED_OPTIONS"})
"REQUIRED_OPTIONS"})
local options = {}
for opt in output:gmatch("[^%s]+") do