diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-05-17 22:27:12 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-05-17 22:27:12 +0000 |
commit | 5952108d968b7307c891a28c4e3755977a1d25f8 (patch) | |
tree | ec448e5ddec89d456f73c638e61c1545e401c676 /makewhatis.8 | |
parent | 70e375bc0ac2abc353ce19a4a88627775797de77 (diff) | |
download | mandoc-5952108d968b7307c891a28c4e3755977a1d25f8.tar.gz mandoc-5952108d968b7307c891a28c4e3755977a1d25f8.tar.zst mandoc-5952108d968b7307c891a28c4e3755977a1d25f8.zip |
Never create empty databases.
When pkg_add(1)ing packages installing manual pages into some directory,
the database in that directory automatically gets created or updated,
no change so far. This patch causes the database file to be
automatically unlinked when pkg_delete(1)ing the last package having
manual pages in that directory, to leave less cruft behind.
Suggested by ajacoutot@.
Diffstat (limited to 'makewhatis.8')
-rw-r--r-- | makewhatis.8 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/makewhatis.8 b/makewhatis.8 index f8875fe5..9f307a35 100644 --- a/makewhatis.8 +++ b/makewhatis.8 @@ -1,4 +1,4 @@ -.\" $Id: makewhatis.8,v 1.5 2017/03/18 19:51:19 schwarze Exp $ +.\" $Id: makewhatis.8,v 1.6 2017/05/17 22:27:12 schwarze Exp $ .\" .\" Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> .\" Copyright (c) 2011, 2012, 2014, 2017 Ingo Schwarze <schwarze@openbsd.org> @@ -15,7 +15,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: March 18 2017 $ +.Dd $Mdocdate: May 17 2017 $ .Dt MAKEWHATIS 8 .Os .Sh NAME @@ -74,6 +74,8 @@ and .Sm on in that directory. Existing databases are replaced. +If a directory contains no manual pages, no database is created in that +directory. If .Ar dir is not provided, @@ -130,6 +132,7 @@ Remove .Ar from the database in .Ar dir . +If that causes the database to become empty, also delete the database file. .El .Pp If fatal parse errors are encountered while parsing, the offending file |