[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Groff] man page in perlscript
From: |
Daniel Schroeter |
Subject: |
[Groff] man page in perlscript |
Date: |
Fri, 02 Feb 2001 15:19:17 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux 2.4.1 i686; en-US; m18) Gecko/20010116 |
hi,
hope that's the correct place here...
i using GNU troff version 1.16.1 under linux 2.4.1
we have here perlscripts, where the manpage is included.
#!/usr/bin/perl -w
'di';
'ig00';
# here is starting the perlscript
....
....
....
###############################################################
# These next few lines are legal in both Perl and nroff.
.00; # finish .ig
'di \" finish diversion--previous line must be blank
nr nl 0-1 \" fake up transition to first page again
.nr % 0 \" start at page 1
'; __END__ ##### From here on it's a standard manual page #####
.TH DV 1 26-Jan-1999
.SH NAME
dv - display volume group and disk usage
.SH SYNOPSIS
-------------------and so on ----------------
under hpux, sun and aix it works fine. bit if i using "man
<programname>" under linux, i get this:
<standard input>:3: warning: `di';' not defined (probable missing space
after `di')
<standard input>:4: warning: `ig00';' not defined (probable missing
space after
`ig')
<standard input>:171: cannot use character `*' as a starting delimiter
<standard input>:172: division by zero
<standard input>:173: warning: numeric expression expected (got `b')
#!/bag/local/bin/perl -w
....
....
....
what's the problem? is it groff? if i using "groff -man <programname>"
it's the same (only more error messages).
please help, i'm a newbie ;-)
THNX
BTW: where can i found a good documentation about the syntax from manpages?
CU
daniel
- [Groff] man page in perlscript,
Daniel Schroeter <=