aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/man
Commit message (Collapse)AuthorAgeFilesLines
* Update mandoc to cvs snaphot from 20150302Baptiste Daroussin2015-03-021-1/+1
| | | | | | | Use the new unsupp warning level to detect the unsupported manpages in man(1) Notes: svn path=/head/; revision=279527
* Only manpages with fatal errors should be rendered by groff(1)Baptiste Daroussin2015-01-031-1/+1
| | | | Notes: svn path=/head/; revision=276643
* mdoc: sort SEE ALSO.Joel Dahl2014-12-261-7/+7
| | | | Notes: svn path=/head/; revision=276258
* mandoc -Tlocale is now the default, no need to enforce it anymoreBaptiste Daroussin2014-12-251-1/+1
| | | | Notes: svn path=/head/; revision=276220
* Update to mandoc cvs version as of 20141201Baptiste Daroussin2014-12-021-16/+3
| | | | | | | | | - Compatiblity with existing manpages has been improved - Now support ".so" directive with compressed manpages (which fixes a regression we have since we have new man(1)) Notes: svn path=/head/; revision=275432
* Fix commentsBaptiste Daroussin2014-11-231-2/+4
| | | | Notes: svn path=/head/; revision=274905
* Fix typoBaptiste Daroussin2014-11-231-1/+1
| | | | Notes: svn path=/head/; revision=274903
* Change man(1) to use mandoc to render manpagesBaptiste Daroussin2014-11-231-4/+44
| | | | | | | | | | man(1) now first test the manpage to run with mandoc to make sure it can be rendered. In case groff cannot be found (because base has been built WITHOUT_GROFF) it recommands to install groff from the packages Notes: svn path=/head/; revision=274901
* Fix improper .Fx macro usage.Edward Tomasz Napierala2014-11-191-9/+18
| | | | | | | | | | Differential Revision: https://reviews.freebsd.org/D1158 Reviewed by: wblock@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=274720
* Replace the macros used in the previous man(1) commit with literal text,Allan Jude2014-09-261-9/+9
| | | | | | | | | | | because the macros seem to be specific to groff, and do not render in mandoc Approved by: bcr (mentor) Sponsored by: ScaleEngine Inc. Notes: svn path=/head/; revision=272174
* Update man(1) to list the different sections of the manualAllan Jude2014-09-251-1/+31
| | | | | | | | | | | | Add each of the intro sections to the 'Also See' list PR: 193460 Differential Revision: D834 Approved by: bcr (mentor) Sponsored by: ScaleEngine Inc. Notes: svn path=/head/; revision=272135
* Remove default support for 1aout section manpages. There haven't beenBrooks Davis2013-01-162-2/+2
| | | | | | | any since at least July 2002. Notes: svn path=/head/; revision=245514
* Minor mdoc improvements.Joel Dahl2012-06-031-3/+4
| | | | Notes: svn path=/head/; revision=236508
* mdoc: sort prologue macros.Joel Dahl2012-03-261-1/+1
| | | | Notes: svn path=/head/; revision=233520
* Spelling fixes for usr.bin/Ulrich Spörlein2011-12-301-1/+1
| | | | Notes: svn path=/head/; revision=228992
* Clean up markup.Ruslan Ermilov2011-08-041-31/+30
| | | | | | | Approved by: re (kib) Notes: svn path=/head/; revision=224648
* When MANCOLOR environment variable is set, enable ANSI color escapesRuslan Ermilov2011-06-032-13/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in grotty(1). This makes it possible to view colorized manpages in color. When MANPAGER environment variable is set, use it instead of PAGER. Why another environment variable, one might ask? With color output enabled, both a terminal and a pager should support the ANSI color escapes. On a supporting terminal, less(1) with option -R would be such a pager, while "more -s" (the current default pager for man(1)) will show garbage. It means a different default pager is needed when color output is enabled, but many people have PAGER set customary, and it's unlikely to support ANSI color escapes, so introducing yet another variable (MANPAGER) seemed like a good option to me: - if MANPAGER is set, use that unconditionally; - if you disable color support (it is by default), and don't set MANPAGER, you get an old behavior: -P pager, $PAGER, "more -s", in that order; - if you enable color support (by setting MANCOLOR), and don't set MANPAGER, we ignore PAGER which is unlikely to support ANSI color escapes, and you get: -P pager, "less -Rs", in that order; - you might have good reasons for different man(1) and general purpose pagers; - later versions of GNU man(1) support MANPAGER. Notes: svn path=/head/; revision=222653
* Don't use col(1) since grotty(1) never outputs reverse line feeds,Ruslan Ermilov2011-06-032-15/+6
| | | | | | | | | | and because col(1) mangles ANSI color escapes if enabled. Spaces to tabs compression is now done by passing -h to grotty(1). Discussed with: uqs Notes: svn path=/head/; revision=222650
* Trim more when parsing MANCONFIG directive.Ruslan Ermilov2011-06-031-1/+1
| | | | Notes: svn path=/head/; revision=222638
* Typo.Ruslan Ermilov2011-06-031-1/+1
| | | | Notes: svn path=/head/; revision=222636
* Added support for the MANWIDTH environment variable:Ruslan Ermilov2011-06-032-2/+46
| | | | | | | | | | If set to a numeric value, used as the width manpages should be displayed. Otherwise, if set to a special value ``tty'', and output is to a terminal, the pages may be displayed over the whole width of the screen. Notes: svn path=/head/; revision=222635
* Fix man -t by not passing grotty flags to groff when grotty is notUlrich Spörlein2011-06-021-1/+1
| | | | | | | | | | | involved. This fixes a regression introduced with r221303. Noticed by: jilles Notes: svn path=/head/; revision=222601
* Let users' PATH decide which groff suite to pick up.Ulrich Spörlein2011-05-011-7/+9
| | | | | | | | | | | | Let groff pass the -c flag to grotty, which will turn off ANSI sequences. While these are not a problem for our more/less, they get mangled by col(1) and this will result in garbage output. This makes man(1) work together with textproc/groff, in case the user decided to delete the old groff from base (-DWITHOUT_GROFF). Notes: svn path=/head/; revision=221303
* Overhaul locale handling.Gordon Tetlow2011-04-021-46/+45
| | | | | | | | | | | Use locale(1) to determine the locale instead of trying to hand roll it. Correctly construct groff call based on charset and locale independently, not the mix between the two. Submitted by: uqs@ Notes: svn path=/head/; revision=220261
* Use test(1) operators and test for the catpage not being older than theUlrich Spörlein2011-01-251-2/+2
| | | | | | | | | | | | manpage. Identical mtimes (as generated by buildworld for these files) precluded catpages from working. Approved by: gordon Notes: svn path=/head/; revision=217831
* Move sysctl invocation to using a variable that's fully pathed.Gordon Tetlow2010-12-141-2/+3
| | | | | | | | | | This prevents errors for users that don't have /sbin in their PATH. Submitted by: Max Boyarov Approved by: mentor (wes@ implicit) Notes: svn path=/head/; revision=216426
* Add ability to decompress different format manual pages.Gordon Tetlow2010-12-031-25/+79
| | | | | | | | | Add support for .so directive in manual pages. Approved by: mentor (wes@) Notes: svn path=/head/; revision=216140
* Add the ability to display specific manual pages if passed on theGordon Tetlow2010-10-072-0/+21
| | | | | | | | | | | | commandline. This mirrors the old (undocumented) GNU man functionality. Also document this feature in the implementation notes section of the manpage. Submitted by: arundel Approved by: wes (mentor implicit) Notes: svn path=/head/; revision=213507
* If LANG/LC_CTYPE/LC_ALL is set and the localized man page contains a pageGordon Tetlow2010-10-061-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | also in the base set, the man utility when invoked with -a would display pages for each locale in the same tree: $ LANG=en_GB.ISO8859-15 man -wa man /usr/share/man/en.ISO8859-15/man1/man.1.gz /usr/share/man/man1/man.1.gz /usr/share/man/en.ISO8859-15/man7/man.7.gz /usr/share/man/man7/man.7.gz Use continue to break out of the loop for the current locale. This results in behavior more closely matching the old GNU man implementation: $ LANG=en_GB.ISO8859-15 man -wa man /usr/share/man/en.ISO8859-15/man1/man.1.gz /usr/share/man/en.ISO8859-15/man7/man.7.gz This will still search for a copy of the file in other manual path locations. If there was a /usr/local/man/man1/man.1.gz file, it would still be displayed. This is also consistent with the GNU man implementation. Submitted by: arundel Approved by: wes (mentor implicit) Notes: svn path=/head/; revision=213470
* SEE ALSO should sorted by manpage section first.Christian Brueffer2010-10-051-2/+2
| | | | Notes: svn path=/head/; revision=213460
* Add reference to intro(1) in SEE ALSO section.Gordon Tetlow2010-10-051-0/+1
| | | | | | | | PR: docs/151216 Approved by: wes (mentor, implicit) Notes: svn path=/head/; revision=213454
* Fix up whatis/apropos issue displaying all output on a single due toGordon Tetlow2010-10-021-2/+2
| | | | | | | | | | forgotten quotes. Submitted by: Brandon Gooch Approved by: wes (mentor, implicit) Notes: svn path=/head/; revision=213349
* Implementaiton of man, manpath, whatis, and apropos written entirely in sh.Gordon Tetlow2010-10-016-0/+1510
| | | | | | | | | | | | | | | | | | | | | Features of this new version in favor of the old one: BSD licensed -- old one is GPL. Imports configuration from /etc/man.conf and LOCALBASE/etc/man.d/*.conf allowing ports to extend the base functionality. The pluggable configuration can supplement the manual search path (retiring use.perl), add locales, and override language specific toolsets (attempt to merge the japanese/man port into the base system as much as possible). Much effort has been made to make this version mirror the functionality of the existing implementation. For 99% of users, it should be a drop in replacement. PR: gnu/143271, gnu/4419 Reviewed by: dougb (previous versions) Approved by: wes (mentor) Notes: svn path=/head/; revision=213317
* kill the undeadPeter Wemm1997-07-138-1421/+0
| | | | Notes: svn path=/head/; revision=27369
* Finish importing Lite2's src/usr.bin, except for ex, diff, grep, mail,Bruce Evans1997-07-068-0/+1421
pascal and vmstat.sparc. All changed files on the vendor branch should already have been imported. Notes: svn path=/vendor/CSRG/dist/; revision=27241