From e0023883c6d2e6745a19e4b48e186ed156c1fca8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 17:19:27 +0200 Subject: Adding upstream version 2.11.2. Signed-off-by: Daniel Baumann --- docs/manpage.example.sgml | 232 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 232 insertions(+) create mode 100644 docs/manpage.example.sgml (limited to 'docs/manpage.example.sgml') diff --git a/docs/manpage.example.sgml b/docs/manpage.example.sgml new file mode 100644 index 0000000..c460680 --- /dev/null +++ b/docs/manpage.example.sgml @@ -0,0 +1,232 @@ + manpage.1'. You may view + the manual page with: `docbook-to-man manpage.sgml | nroff -man | + less'. A typical entry in a Makefile or Makefile.am is: + +manpage.1: manpage.sgml + docbook-to-man $< > $@ + --> + + + + + FIRSTNAME"> + SURNAME"> + + DATE"> + + SECTION"> + EMAIL"> + + UCPACKAGE"> + +]> + + + +
+ &manemail; +
+ + &manfirstname; + &mansurname; + + + 2002 + &manusername; + + &mandate; +
+ + &manucpackage; + + &mansection; + + + &manpackage; + + program to do something + + + + &manpackage; + + thisthat + -flags + + -o option + + argument + more + + + + DESCRIPTION + + Long drawn-out discussion of &manpackage;. + It's a good idea to break this up into subsections, like these: + + + A Sample Subsection + + + + Yet Another Sample Subsection + + References to the + + fooSECTION + (or other) manual page should use the + <citerefentry> element as here. + + + Each paragraph within a section is contained within a + <para> tag. + + + + OPTIONS + + Some people make this separate from the description. + + + + | + + The user MUST specify either or + to run the program. The { and } braces + mean one of the enclosed is required. The bar (|) separates + exclusive options (i.e. you cannot have both at once.) + + + + + + Pass the user-supplied option to + foo to change its behaviour. The fact that + option is underlined or in italics + means that the user replaces it with a valid value for this + option. The [ and ] brackets mean it isn't required. + + + + + + The last is required, because it + is not in brackets. + + + + + + means that the user can optionally specify additional + arguments at the end. The ellipses (...) indicate one or more of + this parameter is allowed. + + + + + + RETURN VALUE + + What the program or function returns if successful. + + + ERRORS + + Return codes, either exit status or errno settings. + + + EXAMPLES + + Give some example uses of the program. + + + ENVIRONMENT + + Environment variables this program might care about. + + + FILES + + All files used by the program. Typical usage is like this: + + + + /usr/man + default man tree + + + /usr/man/man*/*.* + unformatted (nroff source) man pages + + + + + NOTES + + Miscellaneous commentary. + + + CAVEATS + + Things to take special care with, sometimes called WARNINGS. + + + DIAGNOSTICS + + All the possible error messages the program can print out, what + they mean, and how to correct them if applicable. + + + BUGS + + Things that are broken or just don't work quite right. + + + RESTRICTIONS + + Bugs you don't plan to fix. :-) + + + AUTHOR + + Who wrote it (or AUTHORS if multiple). + + + HISTORY + + Programs derived from other sources sometimes have this. + + + SEE ALSO + + Other man pages to check out, like man(1), man(7), mandb(8), + catman(8). + +
+ + -- cgit v1.2.3