xref: /freebsd/contrib/ntp/sntp/ag-tpl/0-old/agmdoc-cmd.tpl (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1[+: -*- Mode: nroff -*-
2
3  AutoGen5 template mdoc
4
5## agman-cmd.tpl -- Template for command line mdoc pages
6##
7##  This file is part of AutoOpts, a companion to AutoGen.
8##  AutoOpts is free software.
9##  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
10##
11##  AutoOpts is available under any one of two licenses.  The license
12##  in use must be one of these two and the choice is under the control
13##  of the user of the license.
14##
15##   The GNU Lesser General Public License, version 3 or later
16##      See the files "COPYING.lgplv3" and "COPYING.gplv3"
17##
18##   The Modified Berkeley Software Distribution License
19##      See the file "COPYING.mbsd"
20##
21##  These files have the following sha256 sums:
22##
23##  8584710e9b04216a394078dc156b781d0b47e1729104d666658aecef8ee32e95  COPYING.gplv3
24##  4379e7444a0e2ce2b12dd6f5a52a27a4d02d39d247901d3285c88cf0d37f477b  COPYING.lgplv3
25##  13aa749a5b0a454917a944ed8fffc530b784f5ead522b1aacaf4ec8aa55a6239  COPYING.mbsd
26
27# Produce a man page for section 1, 5 or 8 commands.
28# Which is selected via:  -DMAN_SECTION=n
29# passed to the autogen invocation.  "n" may have a suffix, if desired.
30#
31:+][+:
32
33(define head-line (lambda() (string-append
34   ".Dd "   (shell "date '+%B %e %Y' | sed 's/  */ /g'")
35   "\n.Dt " UP-PROG-NAME " " man-sect " " section-name
36   "\n.Os\n") ))
37
38(define man-page #f)                        :+][+:
39
40INCLUDE "mdoc-synopsis.tlib"                :+][+:
41INCLUDE "cmd-doc.tlib"                      :+][+:
42INVOKE build-doc                            :+][+:
43
44(out-move (string-append
45          (get "prog-name") "." man-sect))  :+][+:
46agmdoc-cmd.tpl ends here  :+]
47