mirror of
https://github.com/mjl-/mox.git
synced 2024-12-26 16:33:47 +03:00
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:
parent
a5163493e7
commit
71981ebf43
2 changed files with 8 additions and 9 deletions
12
gendoc.sh
12
gendoc.sh
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue