This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: man? - solved


Who cares... wrote:
> well i did what you said i got the following error
> : troff: can't find `DESC' file
> troff: fatal error: sorry, I can't continue

If you are using the following version of troff:

David Shochat wrote:
> I figured out a command that achieves what I was looking for (how to 
> look at man pages), for example:
> 
>  troff -man -Tascii bash.1 | grotty | less
> 
> The groff package I'm using is
> http://www.itribe.net/virtunix/groff-1.10nt.zip

then I can solve your problem.  This version of troff will NOT find
the tmac and font directories unless your current drive is the same as
where it is installed.

The following shell script is a crude man that works for me:

--- begin of man ---
export GROFF_FONT_PATH=/gnu-extras/share/groff/font
export GROFF_TMAC_PATH=/gnu-extras/share/groff/tmac
ROOTDIR=/glenda
MANDIR=/gnu-win32/man/man1

cd $ROOTDIR
troff -man -Tascii $MANDIR/$1.1 | grotty 2>nul:
--- endof man ---

where:
    /glenda is a gnu-win32 style mount where I installed gnu-win32
    /gnu-win32 is the root of my gnu-win32 tree
    /gnu-extras is the root of my troff tree

Hope the above helps.

Jason

-- 
Jason Tishler                        Phone: +1 (212) 989-4455 ext. 120
Box Hill Systems Corporation         Fax:   +1 (212) 989-6817
161 Avenue of the Americas           Email: jt@boxhill.com
New York, NY 10013 USA               WWW:   http://www.boxhill.com
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]