summaryrefslogtreecommitdiff
path: root/Master/bin/i386-kfreebsd/fmtutil
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-05-25 00:25:04 +0000
committerKarl Berry <karl@freefriends.org>2010-05-25 00:25:04 +0000
commit42af04bbcfa80a8c984c8704e1326de3d91fce4b (patch)
tree6b7f74ce7d483c7dbe6e86b78c62d4c7813d1894 /Master/bin/i386-kfreebsd/fmtutil
parent7f92c65995dbe6372a752cd60554f2e65f6999b9 (diff)
i386-kfreebsd 2010 pretest 1 binaries (braslau)
git-svn-id: svn://tug.org/texlive/trunk@18458 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/bin/i386-kfreebsd/fmtutil')
-rwxr-xr-xMaster/bin/i386-kfreebsd/fmtutil39
1 files changed, 24 insertions, 15 deletions
diff --git a/Master/bin/i386-kfreebsd/fmtutil b/Master/bin/i386-kfreebsd/fmtutil
index 83884f7050f..6257aba50e7 100755
--- a/Master/bin/i386-kfreebsd/fmtutil
+++ b/Master/bin/i386-kfreebsd/fmtutil
@@ -59,7 +59,7 @@ test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
progname=fmtutil
argv0=$0
-version='$Id: fmtutil 16755 2010-01-17 01:19:27Z karl $'
+version='$Id: fmtutil 17423 2010-03-11 17:53:34Z karl $'
cnf=fmtutil.cnf # name of the config file
export PATH
@@ -86,10 +86,21 @@ help()
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).
-Valid options:
+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.
+
+If not operating in mktexfmt mode, the command line can be more general,
+and multiple formats can be generated, as follows.
+
+Valid options for fmtutil:
--cnffile FILE
--fmtdir DIRECTORY
--no-engine-subdir don't use engine-specific subdir of the fmtdir
@@ -98,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
@@ -118,7 +129,8 @@ 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>.
+Report bugs to: tex-k@tug.org
+TeX Live home page: <http://tug.org/texlive/>
eof
cleanup 0
}
@@ -401,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