diff options
Diffstat (limited to 'Master/bin/sparc-linux/fmtutil')
-rwxr-xr-x | Master/bin/sparc-linux/fmtutil | 48 |
1 files changed, 30 insertions, 18 deletions
diff --git a/Master/bin/sparc-linux/fmtutil b/Master/bin/sparc-linux/fmtutil index f12885629e2..6257aba50e7 100755 --- a/Master/bin/sparc-linux/fmtutil +++ b/Master/bin/sparc-linux/fmtutil @@ -1,6 +1,7 @@ #!/bin/sh # fmtutil - utility to maintain format files. # Public domain. Originally written by Thomas Esser. +# Run with --help for usage. # program history: # further changes in texk/tetex/ChangeLog. @@ -58,7 +59,7 @@ test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"' progname=fmtutil argv0=$0 -version=20091223.1047 +version='$Id: fmtutil 17423 2010-03-11 17:53:34Z karl $' cnf=fmtutil.cnf # name of the config file export PATH @@ -82,13 +83,24 @@ cleanup() ############################################################################### help() { - cat <<'eof' + cat <<eof +$version Usage: fmtutil [OPTION]... CMD [ARG]... +Usage: mktexfmt FMT.fmt|BASE.base|MEM.mem|FMTNAME + +Rebuild and manage TeX formats (and Metafont bases and MetaPost mems). + +If the command name ends in mktexfmt, only one format can be created. +The only options supported are --help and --version, and the command +line must consist of either a format name, with its extension, or a +plain name that is passed as the argument to --byfmt (see below). The +full name of the generated file (if any) is written to stdout, and +nothing else. -Rebuild, manage, and otherwise manipulate TeX formats (and Metafont -bases and MetaPost mems). +If not operating in mktexfmt mode, the command line can be more general, +and multiple formats can be generated, as follows. -Valid options: +Valid options for fmtutil: --cnffile FILE --fmtdir DIRECTORY --no-engine-subdir don't use engine-specific subdir of the fmtdir @@ -97,7 +109,7 @@ Valid options: --dolinks (not implemented, just for compatibility) --force (not implemented, just for compatibility) -Valid commands: +Valid commands for fmtutil: --all recreate all format files --missing create all missing format files --refresh recreate only existing format files @@ -116,6 +128,9 @@ Valid commands: The config file is named fmtutil.cnf, and running kpsewhich fmtutil.cnf should show the active file. + +Report bugs to: tex-k@tug.org +TeX Live home page: <http://tug.org/texlive/> eof cleanup 0 } @@ -398,18 +413,15 @@ main() mktexfmtMode=true fullfmt=$1; shift case $fullfmt in + ""|--help) help ;; + --version) version ;; + --*) abort "unknown option $fullfmt, try --help" ;; *.fmt|*.mem|*.base) - set x --byfmt `echo $fullfmt | sed 's@\.[a-z]*$@@'` ${1+"$@"}; shift - ;; - *.*) - abort "unknown format type: $fullfmt" - ;; - "") - help - ;; - *) - set x --byfmt $fullfmt; shift - ;; + set x --byfmt `echo $fullfmt | sed 's@\.[a-z]*$@@'` ${1+"$@"} + shift + ;; + *.*) abort "unknown format type: $fullfmt" ;; + *) set x --byfmt $fullfmt; shift ;; esac ;; esac @@ -482,7 +494,7 @@ main() esac if test -n "$cfgparam"; then - test -f "$cnf_file" || abort "config file \`$cnf_file' not found" + test -f "$cnf_file" || abort "config file \`$cnf_file' not found (ls-R missing?)" fi if test -n "$cfgmaint"; then |