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