aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-04-18 10:30:37 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-04-18 10:30:37 +0000
commit411bfa6dc02db92cb73b645471fecb82e9666574 (patch)
tree7c969cba4f41cceacf6ffe29ad4ced8591a92cc6
parent6d318c3634882120ca2c66287d2c3c0dbe5ec594 (diff)
downloadmandoc-411bfa6dc02db92cb73b645471fecb82e9666574.tar.gz
mandoc-411bfa6dc02db92cb73b645471fecb82e9666574.tar.zst
mandoc-411bfa6dc02db92cb73b645471fecb82e9666574.zip
Slowly, the dust begins to settle.
We are keeping the traditional name makewhatis(8). No content change.
-rw-r--r--Makefile18
-rw-r--r--apropos.116
-rw-r--r--makewhatis.8 (renamed from mandocdb.8)12
-rw-r--r--man.cgi.76
4 files changed, 26 insertions, 26 deletions
diff --git a/Makefile b/Makefile
index 854daf90..a8523931 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ CFLAGS += -DUSE_WCHAR
# If your system has manpath(1), uncomment this. This is most any
# system that's not OpenBSD or NetBSD. If uncommented, manpage(1) and
-# mandocdb(8) will use manpath(1) to get the MANPATH variable.
+# makewhatis(8) will use manpath(1) to get the MANPATH variable.
#CFLAGS += -DUSE_MANPATH
# If your system does not support static binaries, comment this,
@@ -52,7 +52,7 @@ INSTALL_MAN = $(INSTALL_DATA)
# If you want to build without database support, for example to avoid
# the dependency on SQLite3, comment the following two lines.
DBLIB = -L/usr/local/lib -lsqlite3
-DBBIN = mandocdb manpage apropos
+DBBIN = makewhatis manpage apropos
# === END OF USER SETTINGS =============================================
@@ -111,6 +111,7 @@ SRCS = Makefile \
libroff.h \
main.c \
main.h \
+ makewhatis.8 \
man.7 \
man.c \
man-cgi.css \
@@ -128,7 +129,6 @@ SRCS = Makefile \
mandoc_aux.c \
mandoc_aux.h \
mandoc_char.7 \
- mandocdb.8 \
mandocdb.c \
manpage.c \
manpath.c \
@@ -259,8 +259,8 @@ MANDOC_OBJS = $(MANDOC_HTML_OBJS) \
tree.o
$(MANDOC_OBJS): main.h mandoc.h mandoc_aux.h mdoc.h man.h config.h out.h
-MANDOCDB_OBJS = mandocdb.o mansearch_const.o manpath.o
-$(MANDOCDB_OBJS): mansearch.h mandoc.h mandoc_aux.h \
+MAKEWHATIS_OBJS = mandocdb.o mansearch_const.o manpath.o
+$(MAKEWHATIS_OBJS): mansearch.h mandoc.h mandoc_aux.h \
mdoc.h man.h config.h manpath.h
PRECONV_OBJS = preconv.o
@@ -289,7 +289,7 @@ WWW_MANS = apropos.1.html \
mdoc.7.html \
roff.7.html \
tbl.7.html \
- mandocdb.8.html \
+ makewhatis.8.html \
man.h.html \
mandoc.h.html \
manpath.h.html \
@@ -304,7 +304,7 @@ WWW_OBJS = mdocml.tar.gz \
clean:
rm -f libmandoc.a $(LIBMANDOC_OBJS)
rm -f apropos $(APROPOS_OBJS)
- rm -f mandocdb $(MANDOCDB_OBJS)
+ rm -f makewhatis $(MAKEWHATIS_OBJS)
rm -f preconv $(PRECONV_OBJS)
rm -f manpage $(MANPAGE_OBJS)
rm -f demandoc $(DEMANDOC_OBJS)
@@ -353,8 +353,8 @@ libmandoc.a: $(COMPAT_OBJS) $(LIBMANDOC_OBJS)
mandoc: $(MANDOC_OBJS) libmandoc.a
$(CC) $(LDFLAGS) -o $@ $(MANDOC_OBJS) libmandoc.a
-mandocdb: $(MANDOCDB_OBJS) libmandoc.a
- $(CC) $(LDFLAGS) -o $@ $(MANDOCDB_OBJS) libmandoc.a $(DBLIB)
+makewhatis: $(MAKEWHATIS_OBJS) libmandoc.a
+ $(CC) $(LDFLAGS) -o $@ $(MAKEWHATIS_OBJS) libmandoc.a $(DBLIB)
preconv: $(PRECONV_OBJS)
$(CC) $(LDFLAGS) -o $@ $(PRECONV_OBJS)
diff --git a/apropos.1 b/apropos.1
index 39ce2573..6f57a7d4 100644
--- a/apropos.1
+++ b/apropos.1
@@ -1,4 +1,4 @@
-.\" $Id: apropos.1,v 1.27 2014/04/18 09:47:09 schwarze Exp $
+.\" $Id: apropos.1,v 1.28 2014/04/18 10:30:37 schwarze Exp $
.\"
.\" Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2011, 2012, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -37,7 +37,7 @@ The
and
.Nm whatis
utilities query manual page databases generated by
-.Xr mandocdb 8 ,
+.Xr makewhatis 8 ,
evaluating
.Ar expression
for each file in each database.
@@ -47,7 +47,7 @@ of all matching manuals.
By default,
.Nm
searches for
-.Xr mandocdb 8
+.Xr makewhatis 8
databases in the default paths stipulated by
.Xr man 1
and uses case-insensitive substring matching
@@ -70,13 +70,13 @@ format.
.It Fl M Ar path
Use the colon-separated path instead of the default list of paths
searched for
-.Xr mandocdb 8
+.Xr makewhatis 8
databases.
Invalid paths, or paths without manual databases, are ignored.
.It Fl m Ar path
Prepend the colon-separated paths to the list of paths searched
for
-.Xr mandocdb 8
+.Xr makewhatis 8
databases.
Invalid paths, or paths without manual databases, are ignored.
.It Fl O Ar outkey
@@ -196,7 +196,7 @@ If an architecture is specified in the output, use
Queries evaluate over a subset of
.Xr mdoc 7
macros indexed by
-.Xr mandocdb 8 .
+.Xr makewhatis 8 .
In addition to the macro keys listed below, the special key
.Cm any
may be used to match any available macro key.
@@ -293,7 +293,7 @@ standard search path.
.Bl -tag -width "/etc/man.conf" -compact
.It Pa mandoc.db
name of the
-.Xr mandocdb 8
+.Xr makewhatis 8
keyword database
.It Pa /etc/man.conf
default
@@ -347,7 +347,7 @@ The following two invocations are equivalent:
.Sh SEE ALSO
.Xr man 1 ,
.Xr re_format 7 ,
-.Xr mandocdb 8
+.Xr makewhatis 8
.Sh HISTORY
An
.Nm
diff --git a/mandocdb.8 b/makewhatis.8
index 6cbd5ee2..beb2442f 100644
--- a/mandocdb.8
+++ b/makewhatis.8
@@ -1,4 +1,4 @@
-.\" $Id: mandocdb.8,v 1.25 2014/04/04 02:31:07 schwarze Exp $
+.\" $Id: makewhatis.8,v 1.1 2014/04/18 10:30:37 schwarze Exp $
.\"
.\" Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2011, 2012 Ingo Schwarze <schwarze@openbsd.org>
@@ -15,11 +15,11 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: April 4 2014 $
-.Dt MANDOCDB 8
+.Dd $Mdocdate: April 18 2014 $
+.Dt MAKEWHATIS 8
.Os
.Sh NAME
-.Nm mandocdb
+.Nm makewhatis
.Nd index UNIX manuals
.Sh SYNOPSIS
.Nm
@@ -174,7 +174,7 @@ The output databases are corrupt and should be removed.
.Xr man.conf 5
.Sh HISTORY
A
-.Nm makewhatis
+.Nm
utility first appeared in
.Bx 2 .
It was rewritten in
@@ -205,7 +205,7 @@ in
.An Bill Joy
wrote the original
.Bx
-.Nm makewhatis
+.Nm
in February 1979,
.An Marc Espie
started the Perl version in 2000,
diff --git a/man.cgi.7 b/man.cgi.7
index ec927ca9..74937a68 100644
--- a/man.cgi.7
+++ b/man.cgi.7
@@ -1,4 +1,4 @@
-.Dd $Mdocdate: July 13 2013 $
+.Dd $Mdocdate: April 18 2014 $
.Dt MAN.CGI 7
.Os
.Sh NAME
@@ -11,7 +11,7 @@ The
.Nm
script queries and displays manual pages.
It interfaces with
-.Xr mandocdb 8
+.Xr makewhatis 8
databases cached with
.Xr catman 8 .
.Pp
@@ -109,7 +109,7 @@ script by Wolfram Schneider.
However, the results may not be quite the same.
.Sh SEE ALSO
.Xr catman 8 ,
-.Xr mandocdb 8
+.Xr makewhatis 8
.Sh AUTHORS
The
.Nm