Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/mdocml/dist import mdocml 1.13.3
details: https://anonhg.NetBSD.org/src/rev/8f8c0f90c69a
branches: trunk
changeset: 342349:8f8c0f90c69a
user: christos <christos%NetBSD.org@localhost>
date: Thu Dec 17 21:58:47 2015 +0000
description:
import mdocml 1.13.3
diffstat:
external/bsd/mdocml/dist/INSTALL | 152 +
external/bsd/mdocml/dist/LICENSE | 47 +
external/bsd/mdocml/dist/Makefile | 443 ++--
external/bsd/mdocml/dist/Makefile.depend | 74 +
external/bsd/mdocml/dist/NEWS | 263 +++-
external/bsd/mdocml/dist/TODO | 411 ++++-
external/bsd/mdocml/dist/apropos.1 | 379 +++-
external/bsd/mdocml/dist/att.c | 26 +-
external/bsd/mdocml/dist/cgi.c | 1378 +++++++--------
external/bsd/mdocml/dist/cgi.h.example | 9 +
external/bsd/mdocml/dist/chars.c | 58 +-
external/bsd/mdocml/dist/chars.in | 294 +-
external/bsd/mdocml/dist/compat_fts.c | 808 +++++++++
external/bsd/mdocml/dist/compat_fts.h | 106 +
external/bsd/mdocml/dist/compat_getsubopt.c | 14 +-
external/bsd/mdocml/dist/compat_ohash.c | 138 +-
external/bsd/mdocml/dist/compat_ohash.h | 18 +-
external/bsd/mdocml/dist/compat_reallocarray.c | 49 +
external/bsd/mdocml/dist/compat_sqlite3_errstr.c | 16 +
external/bsd/mdocml/dist/compat_strcasestr.c | 7 +-
external/bsd/mdocml/dist/compat_strlcat.c | 4 +-
external/bsd/mdocml/dist/compat_strlcpy.c | 4 +-
external/bsd/mdocml/dist/compat_strsep.c | 7 +-
external/bsd/mdocml/dist/compat_strtonum.c | 76 +
external/bsd/mdocml/dist/configure | 416 ++++-
external/bsd/mdocml/dist/configure.local.example | 233 ++
external/bsd/mdocml/dist/demandoc.1 | 6 +-
external/bsd/mdocml/dist/demandoc.c | 46 +-
external/bsd/mdocml/dist/eqn.7 | 289 ++-
external/bsd/mdocml/dist/eqn.c | 1470 +++++++++-------
external/bsd/mdocml/dist/eqn_html.c | 189 +-
external/bsd/mdocml/dist/eqn_term.c | 91 +-
external/bsd/mdocml/dist/example.style.css | 18 +-
external/bsd/mdocml/dist/gmdiff | 25 +-
external/bsd/mdocml/dist/html.c | 371 ++--
external/bsd/mdocml/dist/html.h | 65 +-
external/bsd/mdocml/dist/lib.c | 9 +-
external/bsd/mdocml/dist/libman.h | 39 +-
external/bsd/mdocml/dist/libmdoc.h | 57 +-
external/bsd/mdocml/dist/libroff.h | 52 +-
external/bsd/mdocml/dist/main.c | 855 ++++++++-
external/bsd/mdocml/dist/main.h | 29 +-
external/bsd/mdocml/dist/makewhatis.8 | 217 ++
external/bsd/mdocml/dist/man-cgi.css | 6 +-
external/bsd/mdocml/dist/man.1 | 461 +++++
external/bsd/mdocml/dist/man.7 | 200 +-
external/bsd/mdocml/dist/man.c | 518 ++---
external/bsd/mdocml/dist/man.cgi.8 | 415 ++++
external/bsd/mdocml/dist/man.h | 13 +-
external/bsd/mdocml/dist/man_hash.c | 11 +-
external/bsd/mdocml/dist/man_html.c | 193 +-
external/bsd/mdocml/dist/man_macro.c | 364 ++--
external/bsd/mdocml/dist/man_validate.c | 472 ++---
external/bsd/mdocml/dist/mandoc.1 | 1455 +++++++++++++++--
external/bsd/mdocml/dist/mandoc.3 | 460 ++--
external/bsd/mdocml/dist/mandoc.c | 271 +-
external/bsd/mdocml/dist/mandoc.db.5 | 157 +
external/bsd/mdocml/dist/mandoc_aux.c | 119 +
external/bsd/mdocml/dist/mandoc_aux.h | 29 +
external/bsd/mdocml/dist/mandoc_char.7 | 32 +-
external/bsd/mdocml/dist/mandoc_escape.3 | 367 ++++
external/bsd/mdocml/dist/mandoc_headers.3 | 514 ++++++
external/bsd/mdocml/dist/mandoc_html.3 | 249 ++
external/bsd/mdocml/dist/mandoc_malloc.3 | 197 ++
external/bsd/mdocml/dist/mandocdb.c | 1643 ++++++++++++------
external/bsd/mdocml/dist/manpage.c | 24 +-
external/bsd/mdocml/dist/manpath.c | 62 +-
external/bsd/mdocml/dist/manpath.h | 6 +-
external/bsd/mdocml/dist/mansearch.3 | 228 ++
external/bsd/mdocml/dist/mansearch.c | 620 ++++--
external/bsd/mdocml/dist/mansearch.h | 119 +-
external/bsd/mdocml/dist/mansearch_const.c | 33 +
external/bsd/mdocml/dist/mchars_alloc.3 | 235 ++
external/bsd/mdocml/dist/mdoc.7 | 861 +++++----
external/bsd/mdocml/dist/mdoc.c | 539 ++---
external/bsd/mdocml/dist/mdoc.h | 40 +-
external/bsd/mdocml/dist/mdoc_hash.c | 8 +-
external/bsd/mdocml/dist/mdoc_html.c | 903 +++++-----
external/bsd/mdocml/dist/mdoc_macro.c | 1873 ++++++++-------------
external/bsd/mdocml/dist/mdoc_man.c | 536 ++++-
external/bsd/mdocml/dist/msec.c | 7 +-
external/bsd/mdocml/dist/out.c | 255 +-
external/bsd/mdocml/dist/out.h | 20 +-
external/bsd/mdocml/dist/preconv.c | 533 +-----
external/bsd/mdocml/dist/predefs.in | 2 +-
external/bsd/mdocml/dist/roff.7 | 1196 ++++++++++++-
external/bsd/mdocml/dist/st.c | 9 +-
external/bsd/mdocml/dist/tbl.3 | 129 +-
external/bsd/mdocml/dist/tbl.7 | 181 +-
external/bsd/mdocml/dist/tbl_html.c | 41 +-
external/bsd/mdocml/dist/tbl_term.c | 356 ++--
external/bsd/mdocml/dist/term.c | 485 +++--
external/bsd/mdocml/dist/term.h | 53 +-
external/bsd/mdocml/dist/term_ascii.c | 264 ++-
external/bsd/mdocml/dist/term_ps.c | 505 +++-
external/bsd/mdocml/dist/test-dirent-namlen.c | 10 +
external/bsd/mdocml/dist/test-fts.c | 42 +
external/bsd/mdocml/dist/test-getsubopt.c | 23 +-
external/bsd/mdocml/dist/test-mmap.c | 1 +
external/bsd/mdocml/dist/test-ohash.c | 10 +-
external/bsd/mdocml/dist/test-reallocarray.c | 7 +
external/bsd/mdocml/dist/test-sqlite3.c | 47 +
external/bsd/mdocml/dist/test-sqlite3_errstr.c | 8 +
external/bsd/mdocml/dist/test-strcasestr.c | 4 +
external/bsd/mdocml/dist/test-strtonum.c | 42 +
external/bsd/mdocml/dist/test-wchar.c | 63 +
external/bsd/mdocml/dist/tree.c | 204 +-
107 files changed, 18823 insertions(+), 9165 deletions(-)
diffs (truncated from 40288 to 300 lines):
diff -r 0c3e04d373c3 -r 8f8c0f90c69a external/bsd/mdocml/dist/INSTALL
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/mdocml/dist/INSTALL Thu Dec 17 21:58:47 2015 +0000
@@ -0,0 +1,152 @@
+$Id: INSTALL,v 1.1.1.1 2015/12/17 21:58:47 christos Exp $
+
+About mdocml, the portable mandoc distribution
+----------------------------------------------
+The mandoc manpage compiler toolset is a suite of tools compiling
+mdoc(7), the roff(7) macro language of choice for BSD manual pages,
+and man(7), the predominant historical language for UNIX manuals.
+It includes a man(1) manual viewer and additional tools.
+For general information, see <http://mdocml.bsd.lv/>.
+
+In case you have questions or want to provide feedback, read
+<http://mdocml.bsd.lv/contact.html>. Consider subscribing to the
+discuss@ mailing list mentioned on that page. If you intend to
+help with the development of mandoc, consider subscribing to the
+tech@ mailing list, too.
+
+Enjoy using the mandoc toolset!
+
+Ingo Schwarze, Karlsruhe, March 2015
+
+
+Installation
+------------
+Before manually installing mandoc on your system, please check
+whether the newest version of mandoc is already installed by default
+or available via a binary package or a ports system. A list of the
+latest bundled and ported versions of mandoc for various operating
+systems is maintained at <http://mdocml.bsd.lv/ports.html>.
+
+Regarding how packages and ports are maintained for your operating
+system, please consult your operating system documentation.
+To install mandoc manually, the following steps are needed:
+
+1. If you want to build the CGI program, man.cgi(8), too, run the
+command "echo BUILD_CGI=1 > configure.local". Then run "cp
+cgi.h.examples cgi.h" and edit cgi.h as desired.
+
+2. Run "./configure".
+This script attempts autoconfiguration of mandoc for your system.
+Read both its standard output and the file "Makefile.local" it
+generates. If anything looks wrong or different from what you
+wish, read the file "configure.local.example", create and edit
+a file "configure.local", and re-run "./configure" until the
+result seems right to you.
+
+3. Run "make".
+Any POSIX-compatible make, in particular both BSD make and GNU make,
+should work. If the build fails, look at "configure.local.example"
+and go back to step 2.
+
+4. Run "make -n install" and check whether everything will be
+installed to the intended places. Otherwise, put some *DIR or *NM*
+variables into "configure.local" and go back to step 2.
+
+5. Run "sudo make install". If you intend to build a binary
+package using some kind of fake root mechanism, you may need a
+command like "make DESTDIR=... install". Read the *-install targets
+in the "Makefile" to understand how DESTDIR is used.
+
+6. If you want to use the integrated man(1) and your system uses
+manpath(1), make sure it is configured correctly, in particular,
+it returns all directory trees where manual pages are installed.
+Otherwise, if your system uses man.conf(5), make sure it contains
+a "_whatdb" line for each directory tree, and the order of these
+lines meets your wishes.
+
+7. If you compiled with database support, run the command "sudo
+makewhatis" to build mandoc.db(5) databases in all the directory
+trees configured in step 6. Whenever installing new manual pages,
+re-run makewhatis(8) to update the databases, or apropos(1) will
+not find the new pages.
+
+8. To set up a man.cgi(8) server, read its manual page.
+
+Note that some man(7) pages may contain low-level roff(7) markup
+that mandoc does not yet understand. On some BSD systems using
+mandoc, third-party software is vetted on whether it may be formatted
+with mandoc. If not, groff(1) is pulled in as a dependency and
+used to install a pre-formatted "catpage" instead of directly as
+manual page source.
+
+
+Understanding mandoc dependencies
+---------------------------------
+The mandoc(1), man(1), and demandoc(1) utilities have no external
+dependencies, but makewhatis(8) and apropos(1) depend on the
+following software:
+
+1. The SQLite database system, see <http://sqlite.org/>.
+The recommended version of SQLite is 3.8.4.3 or newer. The mandoc
+toolset is known to work with version 3.7.5 or newer. Versions
+older than 3.8.3 may not achieve full performance due to the
+missing SQLITE_DETERMINISTIC optimization flag. Versions older
+than 3.8.0 may not show full error information if opening a database
+fails due to the missing sqlite3_errstr() API. Both are very minor
+problems, apropos(1) is fully usable with SQLite 3.7.5. Versions
+older than 3.7.5 may or may not work, they have not been tested.
+
+2. The fts(3) directory traversion functions.
+If your system does not have them, the bundled compatibility version
+will be used, so you need not worry in that case. But be careful: the
+glibc version of fts(3) is known to be broken on 32bit platforms,
+see <https://sourceware.org/bugzilla/show_bug.cgi?id=15838>.
+If you run into that problem, set "HAVE_FTS=0" in configure.local.
+
+3. Marc Espie's ohash(3) library.
+If your system does not have it, the bundled compatibility version
+will be used, so you probably need not worry about it.
+
+
+Checking autoconfiguration quality
+----------------------------------
+If you want to check whether automatic configuration works well
+on your platform, consider the following:
+
+The mandoc package intentionally does not use GNU autoconf because
+we consider that toolset a blatant example of overengineering that
+is obsolete nowadays, since all modern operating systems are now
+reasonably close to POSIX and do not need arcane shell magic any
+longer. If your system does need such magic, consider upgrading
+to reasonably modern POSIX-compliant tools rather than asking for
+autoconf-style workarounds.
+
+As far as mandoc is using any features not mandated by ANSI X3.159-1989
+("ANSI C") or IEEE Std 1003.1-2008 ("POSIX") that some modern systems
+do not have, we intend to provide autoconfiguration tests and
+compat_*.c implementations. Please report any that turn out to be
+missing. Note that while we do strive to produce portable code,
+we do not slavishly restrict ourselves to POSIX-only interfaces.
+For improved security and readability, we do use well-designed,
+modern interfaces like reallocarray(3) even if they are still rather
+uncommon, of course bundling compat_*.c implementations as needed.
+
+Where mandoc is using ANSI C or POSIX features that some systems
+still lack and that compat_*.c implementations can be provided for
+without too much hassle, we will consider adding them, too, so
+please report whatever is missing on your platform.
+
+The following steps can be used to manually check the automatic
+configuration on your platform:
+
+1. Run "make distclean".
+
+2. Run "./configure"
+
+3. Read the file "config.log". It shows the compiler commands used
+to test the libraries installed on your system and the standard
+output and standard error output these commands produce. Watch out
+for unexpected failures. Those are most likely to happen if headers
+or libraries are installed in unusual places or interfaces defined
+in unusual headers. You can also look at the file "config.h" and
+check that no "#define HAVE_*" differ from your expectations.
diff -r 0c3e04d373c3 -r 8f8c0f90c69a external/bsd/mdocml/dist/LICENSE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/mdocml/dist/LICENSE Thu Dec 17 21:58:47 2015 +0000
@@ -0,0 +1,47 @@
+$Id: LICENSE,v 1.1.1.1 2015/12/17 21:58:47 christos Exp $
+
+With the exceptions noted below, all code and documentation
+contained in the mdocml toolkit is protected by the Copyright
+of the following developers:
+
+Copyright (c) 2008-2012, 2014 Kristaps Dzonsons <kristaps%bsd.lv@localhost>
+Copyright (c) 2010-2015 Ingo Schwarze <schwarze%openbsd.org@localhost>
+Copyright (c) 2009, 2010, 2011, 2012 Joerg Sonnenberger <joerg%netbsd.org@localhost>
+Copyright (c) 2013 Franco Fichtner <franco%lastsummer.de@localhost>
+Copyright (c) 1999, 2004 Marc Espie <espie%openbsd.org@localhost>
+Copyright (c) 1998, 2004, 2010 Todd C. Miller <Todd.Miller%courtesan.com@localhost>
+Copyright (c) 2008 Otto Moerbeek <otto%drijf.net@localhost>
+Copyright (c) 2004 Ted Unangst <tedu%openbsd.org@localhost>
+Copyright (c) 2003, 2007, 2008, 2014 Jason McIntyre <jmc%openbsd.org@localhost>
+
+See the individual source files for information about who contributed
+to which file during which years.
+
+
+The mdocml distribution as a whole is distributed by its developers
+under the following license:
+
+Permission to use, copy, modify, and distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+
+The following files included from outside sources are protected by
+other people's Copyright and are distributed under a 3-clause BSD
+license; see these individual files for details.
+
+compat_fts.c, compat_fts.h,
+compat_getsubopt.c, compat_strcasestr.c, compat_strsep.c,
+man.1:
+Copyright (c) 1989,1990,1993,1994 The Regents of the University of California
+
+compat_fgetln.c:
+Copyright (c) 1998 The NetBSD Foundation, Inc.
diff -r 0c3e04d373c3 -r 8f8c0f90c69a external/bsd/mdocml/dist/Makefile
--- a/external/bsd/mdocml/dist/Makefile Thu Dec 17 20:36:36 2015 +0000
+++ b/external/bsd/mdocml/dist/Makefile Thu Dec 17 21:58:47 2015 +0000
@@ -1,136 +1,76 @@
-.PHONY: clean install installwww
-.SUFFIXES: .sgml .html .md5 .h .h.html
-.SUFFIXES: .1 .3 .7 .8
-.SUFFIXES: .1.html .3.html .7.html .8.html
-
-# Specify this if you want to hard-code the operating system to appear
-# in the lower-left hand corner of -mdoc manuals.
+# $Id: Makefile,v 1.1.1.15 2015/12/17 21:58:47 christos Exp $
+#
+# Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps%bsd.lv@localhost>
+# Copyright (c) 2011, 2013, 2014, 2015 Ingo Schwarze <schwarze%openbsd.org@localhost>
#
-# CFLAGS += -DOSNAME="\"OpenBSD 5.4\""
-
-VERSION = 1.13.0
-VDATE = 4 January 2014
-
-# IFF your system supports multi-byte functions (setlocale(), wcwidth(),
-# putwchar()) AND has __STDC_ISO_10646__ (that is, wchar_t is simply a
-# UCS-4 value) should you define USE_WCHAR. If you define it and your
-# system DOESN'T support this, -Tlocale will produce garbage.
-# If you don't define it, -Tlocale is a synonym for -Tacsii.
+# Permission to use, copy, modify, and distribute this software for any
+# purpose with or without fee is hereby granted, provided that the above
+# copyright notice and this permission notice appear in all copies.
#
-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.
-#CFLAGS += -DUSE_MANPATH
+# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-# If your system does not support static binaries, comment this,
-# for example on Mac OS X.
-STATIC = -static
-# Linux requires -pthread to statically link with libdb.
-#STATIC += -pthread
+VERSION = 1.13.3
+
+# === LIST OF FILES ====================================================
-CFLAGS += -I/usr/local/include -g -DHAVE_CONFIG_H
-CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings
-PREFIX = /usr/local
-WWWPREFIX = /var/www
-HTDOCDIR = $(WWWPREFIX)/htdocs
-CGIBINDIR = $(WWWPREFIX)/cgi-bin
-BINDIR = $(PREFIX)/bin
-INCLUDEDIR = $(PREFIX)/include/mandoc
-LIBDIR = $(PREFIX)/lib/mandoc
-MANDIR = $(PREFIX)/man
-EXAMPLEDIR = $(PREFIX)/share/examples/mandoc
-INSTALL = install
-INSTALL_PROGRAM = $(INSTALL) -m 0755
-INSTALL_DATA = $(INSTALL) -m 0444
-INSTALL_LIB = $(INSTALL) -m 0644
-INSTALL_SOURCE = $(INSTALL) -m 0644
-INSTALL_MAN = $(INSTALL_DATA)
-
-DBLIB = -L/usr/local/lib -lsqlite3
-DBBIN = mandocdb manpage apropos
-
-all: mandoc preconv demandoc $(DBBIN)
-
-TESTSRCS = test-fgetln.c \
+TESTSRCS = test-dirent-namlen.c \
+ test-fgetln.c \
+ test-fts.c \
test-getsubopt.c \
test-mmap.c \
test-ohash.c \
+ test-reallocarray.c \
+ test-sqlite3.c \
+ test-sqlite3_errstr.c \
+ test-strcasestr.c \
test-strlcat.c \
test-strlcpy.c \
- test-strnlen.c \
- test-strptime.c
+ test-strptime.c \
+ test-strsep.c \
Home |
Main Index |
Thread Index |
Old Index