From c2336ba724f3a13d653b987680af33b677292cd9 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sun, 25 Mar 2012 00:48:47 +0000 Subject: Some documentation nits. --- apropos_db.c | 5 ++++- index.sgml | 11 +---------- whatis.1 | 8 ++------ 3 files changed, 7 insertions(+), 17 deletions(-) diff --git a/apropos_db.c b/apropos_db.c index 8aea771d..e51b6ef1 100644 --- a/apropos_db.c +++ b/apropos_db.c @@ -1,4 +1,4 @@ -/* $Id: apropos_db.c,v 1.31 2012/03/24 01:46:25 kristaps Exp $ */ +/* $Id: apropos_db.c,v 1.32 2012/03/25 00:48:47 kristaps Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons * Copyright (c) 2011 Ingo Schwarze @@ -19,6 +19,8 @@ #include "config.h" #endif +#include + #include #include #include @@ -426,6 +428,7 @@ apropos_search(int pathsz, char **paths, const struct opts *opts, */ for (i = 0; i < pathsz; i++) { + assert('/' == paths[i][0]); if (chdir(paths[i])) continue; if (single_search(&tree, opts, expr, terms, mc, i)) diff --git a/index.sgml b/index.sgml index 4386a9eb..b32b50b1 100644 --- a/index.sgml +++ b/index.sgml @@ -55,15 +55,6 @@ run make install. Be careful: the preconv, apropos, and whatis binary names are usually taken by existing utilities.

-

- Binaries -

-

- Binary archives consist of pre-compiled binaries, manuals, and other necessary files. - Universal (Mac OS X) binaries are compiled for the PCC, i386, and x86_64 architectures. - Windows binaries are compiled with MingW for the 32-bit (i686) and - 64-bit (x86_64) architectures. -

Downstream

@@ -357,7 +348,7 @@ Copyright © 2008–2011 Kristaps Dzonsons, - $Date: 2012/03/24 02:07:32 $ + $Date: 2012/03/25 00:48:47 $

diff --git a/whatis.1 b/whatis.1 index 500b0b6c..94297e36 100644 --- a/whatis.1 +++ b/whatis.1 @@ -1,4 +1,4 @@ -.\" $Id: whatis.1,v 1.8 2012/03/24 01:54:43 kristaps Exp $ +.\" $Id: whatis.1,v 1.9 2012/03/25 00:48:47 kristaps Exp $ .\" .\" Copyright (c) 2011, 2012 Kristaps Dzonsons .\" @@ -14,7 +14,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 24 2012 $ +.Dd $Mdocdate: March 25 2012 $ .Dt WHATIS 1 .Os .Sh NAME @@ -36,10 +36,6 @@ utility searches databases generated by for manuals containing the word .Ar name in their page name, ignoring case. -It returns the header lines from all matching pages. -You can then use the -.Xr man 1 -command to get more information. .Pp By default, .Nm -- cgit v1.2.3-56-ge451