summaryrefslogtreecommitdiff
path: root/Build/source/texk
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-06-12 16:17:53 +0000
committerKarl Berry <karl@freefriends.org>2010-06-12 16:17:53 +0000
commit02fde557f87c6b7aca90a1b78635195caf509a0c (patch)
tree54ab037585e9d40c048a2559e91fb8d17f60ddde /Build/source/texk
parent75aa2967ffe88d15a692c589b75edc3f8fae5c25 (diff)
disable --edit action in fmtutil
git-svn-id: svn://tug.org/texlive/trunk@18913 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk')
-rw-r--r--Build/source/texk/tetex/ChangeLog5
-rwxr-xr-xBuild/source/texk/tetex/fmtutil48
2 files changed, 30 insertions, 23 deletions
diff --git a/Build/source/texk/tetex/ChangeLog b/Build/source/texk/tetex/ChangeLog
index 535ed5d2e30..7e9afabc113 100644
--- a/Build/source/texk/tetex/ChangeLog
+++ b/Build/source/texk/tetex/ChangeLog
@@ -1,3 +1,8 @@
+2010-06-12 Karl Berry <karl@tug.org>
+
+ * fmtutil (--edit): disable.
+ (help): document this, other tweaks.
+
2010-05-31 Manuel Pégourié-Gonnard <mpg@elzevir.fr>
* fmtutil: allow more than one language file per format.
diff --git a/Build/source/texk/tetex/fmtutil b/Build/source/texk/tetex/fmtutil
index 025cece5568..cb3579971a9 100755
--- a/Build/source/texk/tetex/fmtutil
+++ b/Build/source/texk/tetex/fmtutil
@@ -86,9 +86,9 @@ help()
cat <<eof
$version
Usage: fmtutil [OPTION]... CMD [ARG]...
-Usage: mktexfmt FMT.fmt|BASE.base|MEM.mem|FMTNAME
+Usage: mktexfmt FORMAT.fmt|BASE.base|MEM.mem|FMTNAME.EXT
-Rebuild and manage TeX formats (and Metafont bases and MetaPost mems).
+Rebuild and manage TeX formats, 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
@@ -100,11 +100,11 @@ 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
+Optional behavior:
+ --cnffile FILE read FILE instead of fmtutil.cnf.
--fmtdir DIRECTORY
--no-engine-subdir don't use engine-specific subdir of the fmtdir
- --quiet (not implemented, just for compatibility)
+ --quiet be silent
--test (not implemented, just for compatibility)
--dolinks (not implemented, just for compatibility)
--force (not implemented, just for compatibility)
@@ -122,13 +122,17 @@ Valid commands for fmtutil:
filtered to available formats
--catcfg output the content of the config file
--showhyphen FORMATNAME print name of hyphenfile for format FORMATNAME
- --edit edit config file
+ --edit no-op in TeX Live
--version show version info
--help show this message
The config file is named fmtutil.cnf, and
running kpsewhich fmtutil.cnf should show the active file.
+For more information about fmt generation in TeX Live, try
+tlmgr --help or see http://tug.org/texlive/doc/tlmgr.html.
+The \`generate' action in tlmgr does the work.
+
Report bugs to: tex-k@tug.org
TeX Live home page: <http://tug.org/texlive/>
eof
@@ -479,12 +483,12 @@ 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 for help";;
esac
do test $# -gt 0 && shift; done
@@ -513,26 +517,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