diff options
author | bapt <bapt@FreeBSD.org> | 2014-12-02 23:24:57 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-12-02 23:24:57 +0000 |
commit | 919f2a28755126f55b458d6553ac5e10b76203b3 (patch) | |
tree | 6b285eca5de51692bcaade66a629a2b84eadb8c7 /usr.bin/man | |
parent | d24ff3fdf2f10c9b05c568b96812b7560b5c652a (diff) | |
parent | e00686f8f18c8c3eb3a800468a031699ed0bbc8f (diff) | |
download | FreeBSD-src-919f2a28755126f55b458d6553ac5e10b76203b3.zip FreeBSD-src-919f2a28755126f55b458d6553ac5e10b76203b3.tar.gz |
Update to mandoc cvs version as of 20141201
- 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))
Diffstat (limited to 'usr.bin/man')
-rwxr-xr-x | usr.bin/man/man.sh | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/usr.bin/man/man.sh b/usr.bin/man/man.sh index 2531c9a..de03f40 100755 --- a/usr.bin/man/man.sh +++ b/usr.bin/man/man.sh @@ -279,7 +279,7 @@ man_check_for_so() { # Usage: man_display_page # Display either the manpage or catpage depending on the use_cat variable man_display_page() { - local IFS pipeline preconv_enc testline + local IFS pipeline testline # We are called with IFS set to colon. This causes really weird # things to happen for the variables that have spaces in them. @@ -311,21 +311,8 @@ man_display_page() { return fi - case "${manpage}" in - *.${man_charset}/*) - case "$man_charset" in - ISO8859-1) preconv_enc="latin-1" ;; - ISO8859-15) preconv_enc="latin-1" ;; - UTF-8) preconv_enc="utf-8" ;; - esac - ;; - esac - - if [ -n "$preconv_enc" ]; then - pipeline="preconv -e $preconv_enc |" - fi - testline="$pipeline mandoc -Tlint -Werror 2>/dev/null" - pipeline="$pipeline mandoc -Tlocale | $MANPAGER" + testline="mandoc -Tlint -Werror 2>/dev/null" + pipeline="mandoc -Tlocale | $MANPAGER" if ! eval "$cattool $manpage | $testline" ;then if which -s groff; then |