#!/bin/sh
#
# $Revision: 1.4 $ $Date: 2012-07-26 17:11:48-04 $
# $Source: /home/vogelke/bin/RCS/nr,v $
# $Host: sys7.com $
# $UUID: 172d58fa-bcbd-32db-baee-54339495af54 $
#
#<nr: format a man entry without page breaks
#
# if using nroff:
#    nroff -u0 -Tlp -man 2> /dev/null |
# if using groff:
#    groff -Tascii -mandoc 2> /dev/null |

setup=".pl 9999
.nh
.hy 0
.hlm 0
.na
.ll 78"

# groff -Tascii -man 2> /dev/null
# broken Sat Jan  9 20:46:22 EST 2010; use nroff -man 2> /dev/null

( echo "$setup"; cat ${1+"$@"} ) |
    tbl |
    groff -Tascii -mandoc 2> /dev/null |
    cat -s |
    exec less

exit 1
