From 9bdafd26fd4744b59721d3d8d1b1db65bd10a079 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 20 May 2010 23:38:26 +0000 Subject: i386-freebsd 2010 pretest 1 (koch) git-svn-id: svn://tug.org/texlive/trunk@18388 c570f23f-e606-0410-a88d-b1316a301751 --- Master/bin/i386-freebsd/fmtutil | 48 +++++++++++++++++++++++++---------------- 1 file changed, 30 insertions(+), 18 deletions(-) (limited to 'Master/bin/i386-freebsd/fmtutil') diff --git a/Master/bin/i386-freebsd/fmtutil b/Master/bin/i386-freebsd/fmtutil index f12885629e2..6257aba50e7 100755 --- a/Master/bin/i386-freebsd/fmtutil +++ b/Master/bin/i386-freebsd/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 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 -- cgit v1.2.3