From 7e4bdc7823bc46d9841e2eccd437f04df800e2b3 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 19 Jun 2010 21:47:31 +0000 Subject: powerpc-linux updates git-svn-id: svn://tug.org/texlive/trunk@19064 c570f23f-e606-0410-a88d-b1316a301751 --- Master/bin/powerpc-linux/fmtutil | 57 ++++++++++++++++++++++------------------ 1 file changed, 31 insertions(+), 26 deletions(-) (limited to 'Master/bin/powerpc-linux/fmtutil') diff --git a/Master/bin/powerpc-linux/fmtutil b/Master/bin/powerpc-linux/fmtutil index a24df810123..7465b9680a2 100755 --- a/Master/bin/powerpc-linux/fmtutil +++ b/Master/bin/powerpc-linux/fmtutil @@ -59,7 +59,7 @@ test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"' progname=fmtutil argv0=$0 -version='$Id: fmtutil 18642 2010-05-31 11:55:10Z mpg $' +version='$Id: fmtutil 18938 2010-06-13 18:05:48Z karl $' cnf=fmtutil.cnf # name of the config file export PATH @@ -86,9 +86,9 @@ help() cat < @@ -479,17 +485,18 @@ main() cmd=catcfg;; --listcfg) cmd=listcfg;; - --quiet|-q) + --quiet|-q|--silent) verboseFlag=false;; --test|--dolinks|--force) ;; "") break;; - *) abort "$progname: unknown option \`$1'. Try $progname --help for help";; + *) abort "unknown option \`$1'; try $progname --help if you need it";; esac do test $# -gt 0 && shift; done case "$cmd" in - help|"") help;; + "") abort "missing command; try $progname --help if you need it";; + help) help;; version) version;; esac @@ -513,26 +520,24 @@ main() fi fi - # showhyphen and edit do not need any temp. directory, so do it here: + # these commands need no temp directory, so do them here: case "$cmd" in - showhyphen) - show_hyphen_file "$arg" - cleanup $? - ;; - edit) - ${VISUAL-${EDITOR-vi}} $cnf_file - ;; - enablefmt|disablefmt) - $cmd $arg - ;; catcfg) grep -v '^ *#' "$cnf_file" | sed 's@^ *@@; s@ *$@@' | grep . | sort - cleanup $? - ;; + cleanup $? ;; + edit) + echo "$0: fmtutil --edit is disabled in TeX Live;" >&2 + echo "$0: use a file fmtutil-local.cnf instead." >&2 + echo "$0: See tlmgr --help or http://tug.org/texlive/doc/tlmgr.html." >&2 + cleanup 0 ;; + enablefmt|disablefmt) + $cmd $arg ;; # does not return listcfg) listcfg_loop - cleanup $? - ;; + cleanup $? ;; + showhyphen) + show_hyphen_file "$arg" + cleanup $? ;; esac if test -n "$cfgmaint"; then -- cgit v1.2.3