From: Harlan Stenn Date: Fri, 3 Jun 2011 06:55:13 +0000 (-0400) Subject: Upgrade local autoopts templates to 5.11.10pre5 X-Git-Tag: NTP_4_2_7P179~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa5c21b0e495dc619bee9e710611526f359df3bf;p=thirdparty%2Fntp.git Upgrade local autoopts templates to 5.11.10pre5 bk: 4de88551Z9uJow_rYyN6tKuRzbaQSg --- diff --git a/ChangeLog b/ChangeLog index d3e79cbe0..f9630ea3b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,5 @@ * 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 * Update the std_def_list to include the ntp.lic file. * Distribute the ntp.lic file. diff --git a/sntp/ag-tpl/agmdoc-cmd.tpl b/sntp/ag-tpl/agmdoc-cmd.tpl index a67c3da81..5c12e9226 100644 --- a/sntp/ag-tpl/agmdoc-cmd.tpl +++ b/sntp/ag-tpl/agmdoc-cmd.tpl @@ -4,7 +4,7 @@ ## 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. @@ -45,9 +45,7 @@ INCLUDE "cmd-doc.tlib" .Sh NAME .Nm [+: prog-name :+] .Nd [+: prog-title :+] -[+: - -INVOKE build-doc :+][+: +[+: INVOKE build-doc :+][+: (out-move (string-append (get "prog-name") "." man-sect)) :+][+:# @@ -60,32 +58,34 @@ DEFINE synopsis :+] .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") :+][+: @@ -98,11 +98,12 @@ Operands and options may be intermixed. They will be reordered. ELIF (or (exist? "long-opts") use-flags) -:+] +\:+] .Pp -All arguments must be options.[+: +All arguments must be options. +[+: - ENDIF :+] + ENDIF \:+] .Pp [+: diff --git a/sntp/ag-tpl/mdoc2man b/sntp/ag-tpl/mdoc2man index 061a4d2ef..978b70da6 100755 --- a/sntp/ag-tpl/mdoc2man +++ b/sntp/ag-tpl/mdoc2man @@ -2,7 +2,7 @@ ## 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. @@ -231,19 +231,22 @@ do_arg() { 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() {