diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-04-03 21:45:31 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-04-03 21:45:31 +0000 |
commit | dc91be3095306ef1c3a2917e20da4f98dbd6291e (patch) | |
tree | c8fc7e8db0691de677b03b94509fcc0f067341a1 /Makefile | |
parent | 12d97e930f816d7505ce9bf1b1065b89a2b0d850 (diff) | |
download | mandoc-dc91be3095306ef1c3a2917e20da4f98dbd6291e.tar.gz mandoc-dc91be3095306ef1c3a2917e20da4f98dbd6291e.tar.zst mandoc-dc91be3095306ef1c3a2917e20da4f98dbd6291e.zip |
Instead of silently doing nothing at all,
warn and return non-zero when the manpath is empty, that is,
when /etc/man.conf is non-existent or unreadable
AND the environment variable MANPATH is unset or empty
AND no directories were given on the command line.
Inspired by the error handling in espie@'s makewhatis(8),
except that one doesn't know about MANPATH.
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions