]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Update documentation templates and definitions
authorHarlan Stenn <stenn@ntp.org>
Wed, 12 Dec 2012 08:13:15 +0000 (08:13 +0000)
committerHarlan Stenn <stenn@ntp.org>
Wed, 12 Dec 2012 08:13:15 +0000 (08:13 +0000)
bk: 50c83c9bAcf9bma_UkGUYrbr_pkVTg

ChangeLog
ntpd/invoke-ntp.conf.menu
ntpd/invoke-ntp.keys.menu
ntpd/ntp.conf.texi
ntpd/ntp.keys.texi
scripts/ntp-wait.texi
sntp/ag-tpl/agtexi-file.tpl

index 819a4dc9e8b676af2e201cd60674165727644908..f2d1be9127b014557880916faf65f3654fb2ac99 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,4 @@
+* Update documentation templates and definitions.
 * Create agtexi-file.tpl .
 (4.2.7p334) 2012/12/10 Released by Harlan Stenn <stenn@ntp.org>
 * [Bug 2114] Update tests for sntp's synch distance.
index dc43bf80f7e1eedff019f2b2508f2b5bc5ee1036..e5c6ef353b0b7229969b751e4098b07f7c01d0f5 100644 (file)
@@ -1 +1 @@
-* ntp.conf Invocation::            Invoking ntp.conf
+* ntp.conf Notes::                 Notes about ntp.conf
index 8f9c376def3aa504b96229c62eca0a7a6e1f52ec..2185e4bd5bff2b295e40d12ad23cc590c2bb79b8 100644 (file)
@@ -1 +1 @@
-* ntp.keys Invocation::            Invoking ntp.keys
+* ntp.keys Notes::                 Notes about ntp.keys
index baa49aa072f9e7a52b803c670cb9388918de0a8d..fb1a7ab0f74c9ec150d801caebcf67289eb2a7f0 100644 (file)
@@ -35,11 +35,11 @@ This document applies to version @value{VERSION} of @code{ntp.conf}.
 @shortcontents
 
 @menu
-* ntp.conf Description::        Description
-* sntp Invocation::            Invoking sntp
+* ntp.conf Description::        
+* ntp.conf Notes::        
 @end menu
 
-@node ntp.conf Description
+@node ntp.conf Description,  , Top, Top
 @comment  node-name,  next,  previous,  up
 @section Description
 
index a94955432c6084239ce4c584d50d4023dc4705e7..1fc7b5c51801bd22a58b5bd390f530bbf265900e 100644 (file)
@@ -35,11 +35,11 @@ This document applies to version @value{VERSION} of @code{ntp.keys}.
 @shortcontents
 
 @menu
-* ntp.keys Description::        Description
-* ntp.keys Invocation::                Invoking sntp
+* ntp.keys Description::        
+* ntp.keys Notes::        
 @end menu
 
-@node ntp.keys Description
+@node ntp.keys Description,  , Top, Top
 @comment  node-name,  next,  previous,  up
 @section Description
 
index 57244460130d286f3e7f4575a4da6f547febb2d7..57d8fd3f6c6eae60680405c9d73c1aa561add2b0 100644 (file)
@@ -7,9 +7,9 @@
 @c %**end of header
 
 @ifinfo
-This file documents the use ntp-wait,
+This file documents the use of @code{ntp-wait},
 a program from
-the NTP Project
+the NTP Project,
 that is used to wait until @code{ntpd} has been able to
 synchronize and stabilize the time on the current host.
 @end ifinfo
@@ -30,62 +30,32 @@ synchronize and stabilize the time on the current host.
 @node Top, ntp-wait Description, (dir), (dir)
 @top Simple Network Time Protocol User Manual
 
-This document describes the use of the NTP Project's @code{ntp-wait} program,
-that can be used to query a Network Time Protocol (NTP) server and
-display the time offset of the system clock relative to the server
-clock.  Run as root, it can correct the system clock to this offset as
-well.  It can be run as an interactive command or from a cron job.
+This document describes the use of the NTP Project's @code{ntp-wait} program.
 
-This document applies to version @value{VERSION} of @code{ntp-wait}.
+If there are time-sensitive applications,
+the proper sequence of events is to
+run @code{ntpd -g} as early as possible,
+then invoke all of the non-time-sensitive process,
+run @code{ntp-wait} to block
+until the system's time has stabilized and synchronized,
+and only then start any applicaitons (like database servers) that require
+accurate and stable time.
 
-The program implements the SNTP protocol as defined by RFC 5905, the NTPv4
-IETF specification.
+This document applies to version @value{VERSION} of @code{ntp-wait}.
 
 @shortcontents
 
 @menu
 * ntp-wait Description::            Description
 * ntp-wait Invocation::                Invoking ntp-wait
-* Usage::                       Usage
 @end menu
 
 @node ntp-wait Description
 @comment  node-name,  next,  previous,  up
 @section Description
 
-By default, @code{ntp-wait} writes the local data and time (i.e., not UTC) to the
-standard output in the format:
-
-@example
-1996-10-15 20:17:25.123 (+0800) +4.567 +/- 0.089 secs
-@end example
-
-where
-YYYY-MM-DD HH:MM:SS.SUBSEC is the local date and time,
-(+0800) is the local timezone adjustment (so we would add 8 hours and 0 minutes to convert the reported local time to UTC),
-and
-the +4.567 +/- 0.089 secs indicates the time offset and
-error bound of the system clock relative to the server clock.
+The @code{ntp-wait} program blocks until @code{ntpd} is in synchronized state.
+This can be useful at boot time, to delay the boot sequence until after
+@code{ntpd -g} has set the time.
 
 @include invoke-ntp-wait.texi
-
-@node Usage
-@comment  node-name,  next,  previous,  up
-@section Usage
-
-The simplest use of this program is as an unprivileged command to
-check the current time, offset, and error in the local clock.
-For example:
-
-@example
-ntp-wait ntpserver.somewhere
-@end example
-
-With suitable privilege, it can be run as a command or in a
-@code{crom} job to reset the local clock from a reliable server, like
-the @code{ntpdate} and @code{rdate} commands.
-For example:
-
-@example
-ntp-wait -a ntpserver.somewhere
-@end example
index 93dc822e15340e9ed53147f1dbb344a94617d404..7ab3bf404342feb90c821b2f66ee93df51e2f353 100644 (file)
@@ -83,26 +83,6 @@ coded-prog-name)=] program.[= (name-copyright) =]
 [=
   (out-push-new) (out-suspend "menu")
   (out-push-new)        =][=
-
-INVOKE emit-usage-opt   =][=
-
-;;  FOR all options, ...
-;;
-(define opt-name       "")
-(define extra-ct       0)
-(define extra-text     "")
-(define optname-from "A-Z_^")
-(define optname-to   "a-z--")
-(define invalid-doc   "* INVALID *")
-(if (exist? "preserve-case") (begin
-   (set! optname-from "_^")
-   (set! optname-to   "--") ))
-(if (and have-doc-options (not (exist? "flag[].documentation"))) (begin
-    (ag-fprintf "menu" menu-entry-fmt
-                "base-options:: " "Base options")
-    (print-node opt-name "Base options")
-)   )
-
 =][=#
 
 @c = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =][=
@@ -144,26 +124,10 @@ FOR flag                        =][=
   IF (and (not (exist? "documentation"))
           (< 0 (string-length tmp-str)) )
     =][=
-    IF (exist? "aliases")       =][=
-      INVOKE emit-aliases       =][=
-    ELSE                        =][=
-      INVOKE emit-opt-text      =][=
-    ENDIF                       =][=
   ENDIF                         =][=
 
 ENDFOR flag                     =][=
 
-IF
-   (define home-rc-files (exist? "homerc"))
-   (define environ-init  (exist? "environrc"))
-   (or home-rc-files environ-init)
-   =][=
-
-   INVOKE emit-presets          =][=
-
-ENDIF                           =][=
-
-INVOKE emit-exit-status         =][=
 INVOKE emit-doc-sections        =][=
 
 (out-suspend "opt-desc")
@@ -202,451 +166,6 @@ ENDDEF emit-doc-sections
 
 @c = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =][=
 
-DEFINE emit-exit-status         =][=
- (ag-fprintf "menu" menu-entry-fmt "exit status::" "exit status")
- (print-node "exit status" (string-append program-name " exit status")) =]
-
-One of the following exit values will be returned:
-@table @samp
-@item 0 (EXIT_[=
-  (set! tmp-str (get "exit-name[0]" "SUCCESS"))
-  (string-upcase (string->c-name! tmp-str))
-  =])
-[=
-  (define need-ex-noinput  (exist? "homerc"))
-  (define need-ex-software #t)
-  (get "exit-desc[0]" "Successful program execution.")=]
-@item 1 (EXIT_[=
-
-  (set! tmp-str (get "exit-name[1]" "FAILURE"))
-  (string-upcase (string->c-name! tmp-str))=])
-[= (get "exit-desc[1]"
-        "The operation failed or the command syntax was not valid.") =][=
-
-FOR exit-desc (for-from 2)   =][=
-  (if (= (for-index) 66)
-      (set! need-ex-noinput  #f)
-      (if (= (for-index) 70)
-          (set! need-ex-software #f) ))
-  (set! tmp-str (get (sprintf "exit-name[%d]" (for-index)) "* unnamed *"))
-  (sprintf "\n@item %d (EXIT_%s)\n%s" (for-index)
-    (string-upcase (string->c-name! tmp-str))
-    (get (sprintf "exit-desc[%d]" (for-index))))
-  =][=
-ENDFOR exit-desc                        =][=
-
-(if need-ex-noinput
-    (emit "\n@item 66 (EX_NOINPUT)
-A specified configuration file could not be loaded."))
-
-(if need-ex-noinput
-    (emit "\n@item 70 (EX_SOFTWARE)
-libopts had an internal operational error.  Please report
-it to autogen-users@@lists.sourceforge.net.  Thank you."))
-=]
-@end table[=
-
-ENDDEF emit-exit-status
-
-@c = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =][=
-
-DEFINE emit-aliases             =]
-
-This is an alias for the [= aliases =] option,
-[= (sprintf "@pxref{%1$s %2$s, the %2$s option documentation}.\n"
-      down-prog-name (get "aliases")) =][=
-
-ENDDEF emit-aliases
-
-@c = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =][=
-
-DEFINE emit-opt-text            =]
-
-This is the ``[=(string-downcase! (get "descrip"))=]'' option.[=
-    IF (exist? "arg-type")     =]
-This option takes an [= (if (exist? "arg-optional") "optional " "")
- =]argument [= arg-type =][=
-(if (exist? "arg-name") (string-append " @file{"
-    (string-substitute (get "arg-name") "@" "@@") "}"))
- =].[=
-    ENDIF           =][=
-
-    (set! extra-ct 0)
-    (out-push-new)  =][=
-
-    IF (exist? "min") =]@item
-is required to appear on the command line.
-[=    (set! extra-ct (+ extra-ct 1)) =][=
-    ENDIF=][=
-
-    IF (exist? "max") =]@item
-may appear [=
-      IF % max (== "%s" "NOLIMIT")
-         =]an unlimited number of times[=
-      ELSE
-         =]up to [=max=] times[=
-      ENDIF=].
-[=    (set! extra-ct (+ extra-ct 1)) =][=
-    ENDIF=][=
-
-    IF (exist? "enabled") =]@item
-is enabled by default.
-[=    (set! extra-ct (+ extra-ct 1)) =][=
-    ENDIF=][=
-
-    IF (exist? "ifdef") =]@item
-must be compiled in by defining @code{[=(get "ifdef")
-      =]} during the compilation.
-[=    (set! extra-ct (+ extra-ct 1)) =][=
-    ENDIF =][=
-
-    IF (exist? "ifndef") =]@item
-must be compiled in by @strong{un}-defining @code{[=(get "ifndef")
-      =]} during the compilation.
-[=    (set! extra-ct (+ extra-ct 1)) =][=
-    ENDIF=][=
-
-    IF (exist? "no_preset") =]@item
-may not be preset with environment variables or configuration (rc/ini) files.
-[=    (set! extra-ct (+ extra-ct 1)) =][=
-    ENDIF=][=
-
-    IF (exist? "equivalence") =]@item
-is a member of the [=equivalence=] class of options.
-[=    (set! extra-ct (+ extra-ct 1)) =][=
-    ENDIF=][=
-
-    IF (exist? "flags_must") =]@item
-must appear in combination with the following options:
-[=    FOR flags_must ", " =][=flags_must=][=
-      ENDFOR=].
-[=    (set! extra-ct (+ extra-ct 1)) =][=
-    ENDIF=][=
-
-    IF (exist? "flags_cant") =]@item
-must not appear in combination with any of the following options:
-[=    FOR flags_cant ", " =][=flags_cant=][=
-      ENDFOR=].
-[=    (set! extra-ct (+ extra-ct 1)) =][=
-    ENDIF=][=
-
-    IF  (~* (get "arg-type") "key|set") =]@item
-This option takes a keyword as its argument[=
-
-      CASE arg-type   =][=
-      =* key          =][= (set! extra-ct (+ extra-ct 1)) =].
-The argument sets an enumeration value that can be tested by comparing[=
-
-      =* set          =][= (set! extra-ct (+ extra-ct 1)) =] list.
-Each entry turns on or off membership bits.  These bits can be tested
-with bit tests against[=
-      ESAC arg-type   =] the option value macro ([=
-(string-upcase (string-append
-(if (exist? "prefix") (string-append (get "prefix") "_") "")
-"OPT_VALUE_" (get "name")  )) =]).
-The available keywords are:
-@example
-[= (shell (string-append
-   "${CLexe:-columns} -I4 --spread=1 -W50 <<\\" heredoc-marker
-   (join "\n" (stack "keyword") "\n")
-   heredoc-marker
-   )  ) =]
-@end example
-[=
-
-      IF (=* (get "arg-type") "key") =]
-or their numeric equivalent.[=
-      ENDIF =][=
-
-    ENDIF key/set arg =][=
-
-    IF (> extra-ct 0) =][=
-      (set! extra-text (out-pop #t)) =]
-
-@noindent
-This option has some usage constraints.  It:
-@itemize @bullet
-[=(. extra-text)
-=]@end itemize
-[=  ELSE  =][=
-      (out-pop) =][=
-    ENDIF =][=
-
-?% doc "\n%s" "\nThis option has no @samp{doc} documentation." =][=
-  IF (exist? "deprecated") =]
-
-@strong{NOTE: THIS OPTION IS DEPRECATED}[=
-
-  ENDIF     =][=
-
-ENDDEF emit-opt-text
-
-@c = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =][=
-
-DEFINE set-home-rc-vars          =][=
-  CASE homerc                    =][=
-  ==*  '$@'                      =][=
-       (set! explain-pkgdatadir #t)
-       (set! cfg-file-name (string-substitute (get "homerc")
-          "$@" "$(pkgdatadir)")) =][=
-
-  ==   '.'                       =][=
-       (set! cfg-file-name "$PWD")
-       (set! env-var-list (string-append env-var-list "PWD, "))
-       =][=
-
-  ==*  './'                      =][=
-       (set! explain-pkgdatadir #t)
-       (set! env-var-list  (string-append env-var-list "PWD, "))
-       (set! cfg-file-name (string-append "$PWD" (substring (get "homerc") 1)))
-       =][=
-
-  ~~*  '\$[A-Za-z]'              =][=
-       (set! cfg-file-name (get "homerc"))
-       (set! env-var-list (string-append env-var-list
-             (shellf "echo '%s' | sed 's/^.//;s#/.*##'" cfg-file-name)
-             ", " ))
-       =][=
-
-  == "" =][= (set! cfg-file-name "") =][=
-
-  *                              =][=
-       (set! cfg-file-name (get "homerc"))  =][=
-  ESAC                           =][=
-
-ENDDEF set-home-rc-vars
-
-@c = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =][=
-
-DEFINE emit-multiple-rc         \=]
-[=
-  (define explain-pkgdatadir #f)
-  (define env-var-list       "")
-  rc-count =] places for configuration files:
-@itemize @bullet[=
-FOR homerc                       =][=
-  INVOKE set-home-rc-vars        =][=
-  (if (> (string-length cfg-file-name) 0)
-      (sprintf "\n@item\n%s"  cfg-file-name ))
-  =][=
-
-ENDFOR homerc                    =]
-@end itemize[=
- (if explain-pkgdatadir (ag-fprintf 0
-"\nThe value for @code{$(pkgdatadir)} is recorded at package configure time
-and replaced by @file{libopts} when @file{%s} runs." program-name))
-
-(if (> (string-length env-var-list) 1)
-    (shell (string-append
-"list='@code{'`echo '" env-var-list "' | \
-  sed -e 's#, $##' \
-      -e 's#, #}, @code{#g' \
-      -e 's#, \\([^ ][^ ]*\\)$#, and \\1#'`\\}
-echo
-echo 'The environment variables' ${list}
-echo 'are expanded and replaced when @file{" program-name "} runs.'"
-))  ) =]
-For any of these that are plain files, they are simply processed.
-For any that are directories, then a file named @file{[=
- (if (exist? "rcfile") (get "rcfile")
-     (string-append "." program-name "rc"))=]} is searched for
-within that directory and processed.
-[=
-
-ENDDEF emit-multiple-rc
-
-@c = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =][=
-
-DEFINE emit-one-rc-dir              =][=
-  (define env-var-list       "")
-  (define explain-pkgdatadir #f)    =][=
-  INVOKE set-home-rc-vars
-
-=]@file{[=(. cfg-file-name) =]} for configuration (option) data.[=
-  IF (. explain-pkgdatadir)         =]
-The value for @code{$(pkgdatadir)} is recorded at package configure time
-and replaced by @file{libopts} when @file{[=prog-name=]} runs.
-[=ENDIF=][=
-(if (> (string-length env-var-list) 1)
-    (sprintf
-"\nThe environment variable @code{%s} is expanded and replaced when
-the program runs" env-var-list)) =]
-If this is a plain file, it is simply processed.
-If it is a directory, then a file named @file{[=
-(if (exist? "rcfile") (get "rcfile")
-     (string-append "." program-name "rc"))
-=]} is searched for within that directory.[=
-
-ENDDEF emit-one-rc-dir
-
-@c = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =][=
-
-DEFINE emit-rc-file-info                =]
-
-@noindent
-@code{libopts} will search in [=
-
-    IF (define rc-count (count "homerc"))
-       (define cfg-file-name "")
-       (> rc-count 1)           =][=
-
-       INVOKE emit-multiple-rc  =][=
-    
-    ELSE                        =][=
-       INVOKE emit-one-rc-dir   =][=
-    ENDIF (> rc-count 1)
-
-=]
-
-Configuration files may be in a wide variety of formats.
-The basic format is an option name followed by a value (argument) on the
-same line.  Values may be separated from the option name with a colon,
-equal sign or simply white space.  Values may be continued across multiple
-lines by escaping the newline with a backslash.
-
-Multiple programs may also share the same initialization file.
-Common options are collected at the top, followed by program specific
-segments.  The segments are separated by lines like:
-@example
-[[=(. UP-PROG-NAME)=]]
-@end example
-@noindent
-or by
-@example
-<?program [= prog-name =]>
-@end example
-@noindent
-Do not mix these styles within one configuration file.
-
-Compound values and carefully constructed string values may also be
-specified using XML syntax:
-@example
-<option-name>
-   <sub-opt>...&lt;...&gt;...</sub-opt>
-</option-name>
-@end example
-@noindent
-yielding an @code{option-name.sub-opt} string value of
-@example
-"...<...>..."
-@end example
-@code{AutoOpts} does not track suboptions.  You simply note that it is a
-hierarchicly valued option.  @code{AutoOpts} does provide a means for searching
-the associated name/value pair list (see: optionFindValue).[=
-
-ENDDEF emit-rc-file-info
-
-@c = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =][=
-
-DEFINE emit-presets                     =]
-
-[=
-  (ag-fprintf "menu" menu-entry-fmt "config::"
-           (string-append "presetting/configuring " down-prog-name) )
-
- (print-node "config"
-      (string-append "presetting/configuring " program-name) ) =]
-
-Any option that is not marked as @i{not presettable} may be preset by
-loading values from [=
-
-IF
-
-   (if home-rc-files (emit
-       "configuration (\"rc\" or \"ini\") files"))
-
-   environ-init
-
-  =][=
-  (if home-rc-files (emit ", and values from "))
-  =]environment variables named @code{[=(. UP-PROG-NAME)=]} and @code{[=
-(. UP-PROG-NAME)=]_<OPTION_NAME>}.  @code{<OPTION_NAME>} must be one of
-the options listed above in upper case and segmented with underscores.
-The @code{[=(. UP-PROG-NAME)=]} variable will be tokenized and parsed like
-the command line.  The remaining variables are tested for existence and their
-values are treated like option arguments[=
-  ENDIF  have environment inits         =].
-[=
-
-  IF (. home-rc-files)                  =][=
-     INVOKE emit-rc-file-info           =][=
-  ENDIF home-rc-files                   =]
-
-The command line options relating to configuration and/or usage help are:
-[=
-
-IF (exist? "version")                   =]
-@[= (. head-level) =] version[= (flag-string "version-value" "v") =]
-
-Print the program version to standard out, optionally with licensing
-information, then exit 0.  The optional argument specifies how much licensing
-detail to provide.  The default is to print [=
-(if (exist? "gnu-usage") "the license name with the version" "just the version")
-=].  The licensing infomation may be selected with an option argument.  Only the
-first letter of the argument is examined:
-
-@table @samp
-@item version
-Only print the version.[=
-(if (not (exist? "gnu-usage")) "  This is the default.")=]
-@item copyright
-Name the copyright usage licensing terms.[=
-(if (exist? "gnu-usage") "  This is the default.")=]
-@item verbose
-Print the full copyright usage licensing terms.
-@end table
-[=
-ENDIF version                           =][=
-
-IF (exist? "usage-opt")                 =]
-@[= (. head-level) =] usage[= (flag-string "usage-value" "u") =]
-
-Print abbreviated usage to standard out, then exit 0.
-[=
-ENDIF usage-opt                         =][=
-
-IF (exist? "vendor-opt")                =]
-@[= (. head-level) =] vendor-option (-W)
-
-Options that do not have flag values specified must be specified with
-@code{-W} and the long option name.  That long name is the argument to
-this option.  Any options so named that require an argument must have
-that argument attached to the option name either with quoting or an
-equal sign.
-[=
-ENDIF vendor-opt                        =][=
-
-IF (exist? "resettable")                =]
-@[= (. head-level) =] reset-option[= (flag-string "reset-value" "R") =]
-
-Resets the specified option to the compiled-in initial state.
-This will undo anything that may have been set by configuration files.
-The option argument may be either the option flag character or its long name.
-[=
-ENDIF resettable                        =][=
-
-IF (exist? "home-rc")                   =][=
-  IF (exist? "disable-save")            =]
-@[= (. head-level) =] save-opts[= (flag-string "save-opts-value" ">") =]
-
-Saves the final, configured option state to the specified file (the optional
-option argument).  If no file is specified, then it will be saved to the
-highest priority (last named) @file{rc-file} in the search list.
-[=
-  ENDIF disable-save                    =][=
-
-  IF (exist? "disable-load")            =]
-@[= (. head-level) =] load-opts[= (flag-string "load-opts-value" "<") =]
-
-Loads the named configuration file.
-[=
-  ENDIF disable-load                    =][=
-ENDIF home-rc                           =][=
-
-ENDDEF emit-presets
-
-@c = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =][=
-
 DEFINE header                          \=]
 \input texinfo
 @c -*-texinfo-*-
@@ -679,54 +198,6 @@ ENDDEF header
 
 @c = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =][=
 
-DEFINE emit-usage-opt                   =][=
-
-  (define label-str (string-append
-          program-name " help/usage (@option{" help-opt "})"))
-  (ag-fprintf "menu" menu-entry-fmt "usage::" label-str)
-  (sprintf node-fmt "usage" label-str) =]
-@cindex [=(. down-prog-name)=] help
-
-This is the automatically generated usage text for [= prog-name =].
-
-The text printed is the same whether selected with the @code{help} option
-(@option{[= (. help-opt) =]}) or the @code{more-help} option (@option{[=
-(. more-help-opt) =]}).  @code{more-help} will print
-the usage text by passing it through a pager program.
-@code{more-help} is disabled on platforms without a working
-@code{fork(2)} function.  The @code{PAGER} environment variable is
-used to select the program, defaulting to @file{more}.  Both will exit
-with a status code of 0.
-
-@exampleindent 0
-@example
-[= (out-push-new) =]
-prog_name=[= (. program-name) =]
-PROG=./${prog_name}
-test -f ${PROG} || {
-  PROG=`echo $PROG | tr '[A-Z]' '[a-z]'`
-  test -f ${PROG} || PROG=`echo $PROG | tr x_ x-`
-}
-if [ ! -f ${PROG} ]
-then
-  if [= (string-append program-name " " help-opt) =] > /dev/null 2>&1
-  then PROG=`command -v ${prog_name}`
-  else PROG="echo ${prog_name} is unavailable - no "
-  fi
-fi
-${PROG} [=(. help-opt)=] 2>&1 | \
-    sed -e "s/USAGE:  lt-${prog_name} /USAGE:  ${prog_name} /" \
-        -e 's/@/@@/g;s/{/@{/g;s/}/@}/g' \
-        -e 's/ /        /g'
-[= (shell (out-pop #t))         =]
-@end example
-@exampleindent 4
-[=
-
-ENDDEF emit-usage-opt
-
-@c = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =][=
-
 DEFINE initialization                   =][=
 
 
@@ -791,36 +262,6 @@ DEFINE initialization                   =][=
         (if (exist? v-nm) (get v-nm) v-df)
         ")")  )))
 
-  (define help-opt "")
-  (if (exist? "long-opts")
-      (set! help-opt "--help")
-  (if (not (exist? "flag.value"))
-      (set! help-opt "help")
-  (if (not (exist? "help-value"))
-      (set! help-opt "-?")
-      (begin
-         (set! tmp-str (get "help-value"))
-         (if (> (string-length tmp-str) 0)
-             (set! help-opt (string-append "-" tmp-str))
-             (set! help-opt "--help")
-      )  )
-  )))
-
-  (define more-help-opt "")
-  (if (exist? "long-opts")
-      (set! more-help-opt "--more-help")
-  (if (not (exist? "flag.value"))
-      (set! more-help-opt "more-help")
-  (if (not (exist? "more-help-value"))
-      (set! more-help-opt "-!")
-      (begin
-         (set! tmp-str (get "more-help-value"))
-         (if (> (string-length tmp-str) 0)
-             (set! help-opt (string-append "-" tmp-str))
-             (set! help-opt "--more-help")
-      )  )
-  )))
-
   =][=
 
   CASE (. doc-level)    =][=