* Update cmd-doc.tlib to autogen-5.11.10pre5.
+* Upgrade local autoopts templates to 5.11.10pre5.
(4.2.7p178) 2011/06/02 Released by Harlan Stenn <stenn@ntp.org>
* Update the std_def_list to include the ntp.lic file.
* Distribute the ntp.lic file.
## agman-cmd.tpl -- Template for command line mdoc pages
##
-## Time-stamp: "2011-03-04 10:05:17 bkorb"
+## Time-stamp: "2011-05-24 17:59:40 bkorb"
##
## This file is part of AutoOpts, a companion to AutoGen.
## AutoOpts is free software.
.Sh NAME
.Nm [+: prog-name :+]
.Nd [+: prog-title :+]
-[+:
-
-INVOKE build-doc :+][+:
+[+: INVOKE build-doc :+][+:
(out-move (string-append (get "prog-name") "."
man-sect)) :+][+:#
:+]
.Sh SYNOPSIS
-.Nm [+:
+.Nm
+[+:
IF (define use-flags (exist? "flag.value"))
(define named-mode (not (or use-flags (exist? "long-opts") )))
use-flags
:+][+:
- IF (exist? "long-opts") :+]
+ IF (exist? "long-opts") \:+]
.\" Mixture of short (flag) options and long options
.Op Fl flags
.Op Fl flag Ar value
-.Op Fl \-option-name Ar value[+:
-
- ELSE no long options: :+]
+.Op Fl \-option-name Ar value
+[+: ELSE no long options: \:+]
.Op Fl flags
-.Op Fl flag Ar value[+:
- ENDIF
+.Op Fl flag Ar value
+[+: ENDIF
:+][+:
ELIF (exist? "long-opts")
- :+]
+ \:+]
.Op Fl \-option-name
-.Op Fl \-option-name Ar value[+:
+.Op Fl \-option-name Ar value
+[+:
- ELIF (not (exist? "argument")) :+]
+ ELIF (not (exist? "argument")) \:+]
.Op Ar option\-name Ar value
.Pp
-All arguments are named options.[+:
+All arguments are named options.
+[+:
ENDIF :+][+:
IF (exist? "argument") :+][+:
ELIF (or (exist? "long-opts") use-flags)
-:+]
+\:+]
.Pp
-All arguments must be options.[+:
+All arguments must be options.
+[+:
- ENDIF :+]
+ ENDIF \:+]
.Pp
[+:
## mdoc2mdoc.sh -- script to convert mdoc-isms to mdoc-isms
##
-## Time-stamp: "2011-05-03 09:39:49 bkorb"
+## Time-stamp: "2011-05-30 14:17:42 bkorb"
##
## This file is part of AutoOpts, a companion to AutoGen.
## AutoOpts is free software.
do_NmName() {
# do we want to downcase the line first? Yes...
- set -- `echo $line | sed -e 's/-/\\-/g' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
- shift
- case "$#" in
- 0 ) ;;
- * ) case "$1" in
+ set -- `echo ${line#.Nm} | \
+ sed -e 's/-/\\-/g' \
+ -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
+ NmNameSfx=
+
+ if test $# -gt 0
+ then case "$1" in
[A-Za-z]* )
- NmName=$1
- shift
- ;;
+ NmName=$1
+ shift
+ ;;
esac
- ;;
- esac
- echo ".B $NmName $*"
+
+ test $# -gt 0 && NmNameSfx=" $*"
+ fi
+ echo ".B $NmName$NmNameSfx"
}
do_line() {