=================================================================== RCS file: /cvs/mandoc/makewhatis.8,v retrieving revision 1.5 retrieving revision 1.7 diff -u -p -r1.5 -r1.7 --- mandoc/makewhatis.8 2017/03/18 19:51:19 1.5 +++ mandoc/makewhatis.8 2022/03/16 23:26:14 1.7 @@ -1,4 +1,4 @@ -.\" $Id: makewhatis.8,v 1.5 2017/03/18 19:51:19 schwarze Exp $ +.\" $Id: makewhatis.8,v 1.7 2022/03/16 23:26:14 schwarze Exp $ .\" .\" Copyright (c) 2011, 2012 Kristaps Dzonsons .\" Copyright (c) 2011, 2012, 2014, 2017 Ingo Schwarze @@ -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: March 16 2022 $ .Dt MAKEWHATIS 8 .Os .Sh NAME @@ -52,9 +52,7 @@ manuals and indexes them in a database for fast retrie .Xr apropos 1 , .Xr whatis 1 , and -.Xr man 1 Ns 's -.Fl k -option. +.Xr man 1 . .Pp By default, .Nm @@ -74,6 +72,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 +130,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