ensure "make build" on macos generates the same documentation output

it has been i while since i used the old macos machine...
This commit is contained in:
Mechiel Lukkien 2024-03-09 15:06:42 +01:00
parent a5163493e7
commit 71981ebf43
No known key found for this signature in database
2 changed files with 8 additions and 9 deletions

View file

@ -25,15 +25,9 @@ any parameters. Followed by the help and usage information for each command.
EOF
./mox 2>&1 | sed 's/^\( *\|usage: \)/\t/'
cat <<EOF
EOF
# setting XDG_CONFIG_HOME ensures "mox localserve" has reasonable default
# values in its help output.
XDG_CONFIG_HOME='$userconfigdir' ./mox helpall 2>&1
./mox 2>&1 | sed -e 's/^usage: */\t/' -e 's/^ */\t/'
echo
./mox helpall 2>&1
cat <<EOF
*/

View file

@ -66,6 +66,11 @@ during those commands instead of during "data".
if userConfDir == "" {
userConfDir = "."
}
// If we are being run to gather help output, show a placeholder directory
// instead of evaluating to the actual userconfigdir on the host os.
if c._gather {
userConfDir = "$userconfigdir"
}
var dir, ip string
var initOnly bool