📄 aginfo.tpl
字号:
[= AutoGen5 template texi## Documentation template#### AutoGen Copyright (C) 1992-2002 Bruce Korb#### Author: Bruce Korb <bkorb@gnu.org>## Maintainer: Bruce Korb <bkorb@gnu.org>## Created: Tue Sep 15 13:13:48 1998## Last Modified: $Date: 2002/07/27 04:12:25 $## by: bkorb## ---------------------------------------------------------------------## $Id: aginfo.tpl,v 2.28 2002/07/27 04:12:25 bkorb Exp $## ---------------------------------------------------------------------(setenv "SHELL" "/bin/sh")=]@node [=prog_name=] Invocation@[= (define doc-level (getenv "LEVEL")) (if (not (string? doc-level)) (set! doc-level "section")) doc-level =] Invoking [=prog_name=]@cindex [= % prog_name (define down-prog-name (string-downcase! "%s")) (. down-prog-name) =] invocation@ignore[=(out-push-new (shellf "echo %s | sed 's/texi$/menu/'" (out-name)) )=]* [= % prog_name (sprintf "%%-32s" "%s Invocation::") =] Invoking [=prog_name=][=(out-pop) (dne "# " "# ")=]@end ignore[=explain=][=IF (exist? "prog_info_descrip") =][= FOR prog_info_descrip "\n\n" =][= prog-info-descrip =][= ENDFOR =][=ELIF (exist? "detail") =][= detail =][=ENDIF=]This [=(string-downcase doc-level)=] was generated by @strong{AutoGen},the aginfo template and the option descriptions for the @strong{[=prog_name=]} program. It documents the [=prog_name=] usage text and option meanings.[=IF (exist? "copyright") =]This software is released under [= CASE copyright.type =][= = gpl =]the GNU General Public License[= = lgpl =]the GNU General Public License with Library Extensions[= = bsd =]the Free BSD License[= * =]a specialized copyright license[= ESAC =].[=ENDIF =]@menu* [=(sprintf "%s %-24s" (. down-prog-name) "usage::") =] [=prog_name=] usage help[= (if (exist? "flag.value") " (-?)") =][=(out-push-new (string-append (out-name) ".tmp")) (shell (string-append "f=" (out-name))) =][=FOR flag =][= IF (not (exist? "documentation"))=]* [=(sprintf "%s %-24s" (. down-prog-name) (string-append (string-tr! (get "name") "A-Z^_" "a-z--" ) "::" ) ) =] [=% name (string-tr! "%s" "A-Z^_" "a-z--")=] option[= % value " (-%s)" =][=ENDIF =][=ENDFOR flag=][=(out-pop) =][=`sort $f ; rm -f $f` =]@end menu@node [=(. down-prog-name)=] usage@[=CASE (. doc-level)=][= = chapter =][= = section =]sub[= = subsection =]subsub[= ESAC =]section [=prog_name=] usage help[= (if (exist? "flag.value") " (-?)") =]@cindex [=(. down-prog-name)=] usageThis is the automatically generated usage text for [=prog_name=]:@exampleindent 0@example[= (shellf "PROG=./%1$s if [ ! -f ${PROG} ] then PROG=./`echo $PROG | tr '[A-Z]' '[a-z]'` ; fi if [ ! -f ${PROG} ] then PROG=./`echo $PROG | tr x_ x-` ; fi if [ ! -f ${PROG} ] then if %1$s %2$s > /dev/null 2>&1 then PROG=%1$s else PROG='echo %1$s is unavailable - no' fi ; fi ${PROG} %2$s 2>&1 | \ sed -e 's/USAGE: lt-/USAGE: /' \ -e 's/@/@@/g;s/{/@{/g;s/}/@}/g' \ -e 's/\t/ /g' " (get "prog_name") (if (exist? "long_opts") "--help" (if (exist? "flag.value") "-?" "help" )) ) =]@end example@exampleindent 4[=# FOR all options, except the `documentation' options, ... =][=IF (define opt-name "") (define extra-ct 0) (define extra-text "") (exist? "preserve-case") =][= (define optname-from "_^") (define optname-to "--") =][=ELSE =][= (define optname-from "A-Z_^") (define optname-to "a-z--") =][=ENDIF =][=FOR flag=][= IF (not (exist? "documentation")) =]@node [= (set! opt-name (string-tr! (get "name") optname-from optname-to)) (string-append down-prog-name " " opt-name)=]@[=CASE (. doc-level) =][= = chapter =][= = section =]sub[= = subsection =]subsub[= ESAC =]section [=(. opt-name)=] option[= % value " (-%s)" =]@cindex [=(. down-prog-name)=]-[=(. opt-name)=]This is the ``[=(string-downcase! (get "descrip"))=]'' option.[= (set! extra-ct 0) (out-push-new) =][= IF (exist? "min") =]@itemis required to appear on the command line.[= (set! extra-ct (+ extra-ct 1)) =][= ENDIF=][= IF (exist? "max") =]@itemmay 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") =]@itemis enabled by default.[= (set! extra-ct (+ extra-ct 1)) =][= ENDIF=][= IF (exist? "ifdef") =]@itemmust be compiled in by defining @code{[=(get "ifdef") =]} during the compilation.[= (set! extra-ct (+ extra-ct 1)) =][= ENDIF =][= IF (exist? "ifndef") =]@itemmust be compiled in by @strong{un}-defining @code{[=(get "ifndef") =]} during the compilation.[= (set! extra-ct (+ extra-ct 1)) =][= ENDIF=][= IF (exist? "no_preset") =]@itemmay not be preset with environment variablesor in initialization (rc) files.[= (set! extra-ct (+ extra-ct 1)) =][= ENDIF=][= IF (exist? "equivalence") =]@itemis a member of the [=equivalence=] class of options.[= (set! extra-ct (+ extra-ct 1)) =][= ENDIF=][= IF (exist? "flags_must") =]@itemmust appear in combination with the following options:[= FOR flags_must ", " =][=flags_must=][= ENDFOR=].[= (set! extra-ct (+ extra-ct 1)) =][= ENDIF=][= IF (exist? "flags_cant") =]@itemmust not appear in combination with any of the following options:[= FOR flags_cant ", " =][=flags_cant=][= ENDFOR=].[= (set! extra-ct (+ extra-ct 1)) =][= ENDIF=][= IF (> extra-ct 0) =][= (set! extra-text (out-pop #t)) =]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." =][= ENDIF `documentation' exists =][=ENDFOR flag=][=aginfo.tpl ends here =]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -