1 [+: -*- Mode: nroff -*-
5 ## agman-cmd.tpl -- Template for command line mdoc pages
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
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.
15 ## The GNU Lesser General Public License, version 3 or later
16 ## See the files "COPYING.lgplv3" and "COPYING.gplv3"
18 ## The Modified Berkeley Software Distribution License
19 ## See the file "COPYING.mbsd"
21 ## These files have the following sha256 sums:
23 ## 8584710e9b04216a394078dc156b781d0b47e1729104d666658aecef8ee32e95 COPYING.gplv3
24 ## 4379e7444a0e2ce2b12dd6f5a52a27a4d02d39d247901d3285c88cf0d37f477b COPYING.lgplv3
25 ## 13aa749a5b0a454917a944ed8fffc530b784f5ead522b1aacaf4ec8aa55a6239 COPYING.mbsd
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.
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
38 (define man-page #f) :+][+:
40 INCLUDE "mdoc-synopsis.tlib" :+][+:
41 INCLUDE "cmd-doc.tlib" :+][+:
42 INVOKE build-doc :+][+:
44 (out-move (string-append
45 (get "prog-name") "." man-sect)) :+][+:
46 agmdoc-cmd.tpl ends here :+]