From 9dc5d76e101ecd7e0f57ed9f80b80084a8d631dc Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Wed, 19 Apr 2017 18:11:08 +0000 Subject: [PATCH] makeman: add a comment describing purpose and invocation Reviewed by: jhb, ngie MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D10389 --- tools/build/options/makeman | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/tools/build/options/makeman b/tools/build/options/makeman index bf4474a501e..1e89a4cbbe0 100755 --- a/tools/build/options/makeman +++ b/tools/build/options/makeman @@ -1,8 +1,22 @@ #!/bin/sh # # This file is in the public domain. -# # $FreeBSD$ +# +# This script is used to create the src.conf.5 man page, using template text +# contained herein and the contents of the WITH_* and WITHOUT_* files in the +# same directory. Each WITH_* and WITHOUT_* file documents the effect of the +# /etc/src.conf knob with the same name. +# +# This script invokes "make showconfig" for each supported architecture in +# order to determine, for each option, whether the default setting is always +# WITH, always WITHOUT, or is architecture-dependent. It also determines +# and describes dependencies between options. +# +# Usage: +# +# cd tools/build/options +# sh makeman > ../../../share/man/man5/src.conf.5 set -o errexit export LC_ALL=C @@ -128,7 +142,7 @@ main() fbsdid='$'FreeBSD'$' cat <