summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2015-04-12 02:41:15 +0000
committerNorbert Preining <preining@logic.at>2015-04-12 02:41:15 +0000
commitd1c10b0e8ae31a25adc6ad5fb8377534d4acc6a4 (patch)
treec7244ee1b0e8a7850cabb095d30fea8e1d974494 /Master/texmf-dist
parente371ee1a28d1e74fb8419798c0c0b78b7e7d3a20 (diff)
fmtutil: switch to perl version on all platforms
changes effected: - update link for unix fmtutil - change fmtutil-sys to call fmtutil --sys - cp runscript.tlu to fmtutil.exe on windows - update install-tl and tlmgr to generate fmtutil.cnf in TEXMFDIST git-svn-id: svn://tug.org/texlive/trunk@36770 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rwxr-xr-xMaster/texmf-dist/scripts/texlive/fmtutil-sys.sh17
-rwxr-xr-xMaster/texmf-dist/scripts/texlive/tlmgr.pl40
2 files changed, 24 insertions, 33 deletions
diff --git a/Master/texmf-dist/scripts/texlive/fmtutil-sys.sh b/Master/texmf-dist/scripts/texlive/fmtutil-sys.sh
index a272b66d007..37fb0fafc46 100755
--- a/Master/texmf-dist/scripts/texlive/fmtutil-sys.sh
+++ b/Master/texmf-dist/scripts/texlive/fmtutil-sys.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-# $Id: fmtutil-sys.sh 35626 2014-11-20 19:08:47Z karl $
-# fmtutil-sys - arrange for fmtutil to affect system directories.
+# $Id: updmap-sys.sh 35626 2014-11-20 19:08:47Z karl $
+# fmtutil-sys - arrange for fmtutil to affect system directories.
# Public domain. Originally written by Thomas Esser.
test -f /bin/ksh && test -z "$RUNNING_KSH" \
@@ -13,19 +13,12 @@ test -f /bin/bsh && test -z "$RUNNING_BSH" \
&& { RUNNING_BSH=true; export RUNNING_BSH; exec /bin/bsh $0 ${1+"$@"}; }
unset RUNNING_BSH
-# hack around a bug in zsh:
-test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
-
# preferentially use subprograms from our own directory.
mydir=`echo "$0" | sed 's,/[^/]*$,,'`
mydir=`cd "$mydir" && pwd`
PATH="$mydir:$PATH"; export PATH
-v=`kpsewhich -var-value TEXMFSYSVAR`
-c=`kpsewhich -var-value TEXMFSYSCONFIG`
-
-TEXMFVAR="$v"
-TEXMFCONFIG="$c"
-export TEXMFVAR TEXMFCONFIG
+# hack around a bug in zsh:
+test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
-exec fmtutil ${1+"$@"}
+exec fmtutil --sys ${1+"$@"}
diff --git a/Master/texmf-dist/scripts/texlive/tlmgr.pl b/Master/texmf-dist/scripts/texlive/tlmgr.pl
index bc4a04e8f02..06e3c0d6156 100755
--- a/Master/texmf-dist/scripts/texlive/tlmgr.pl
+++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl
@@ -789,10 +789,9 @@ sub handle_execute_actions {
}
my $opt_fmt = $localtlpdb->option("create_formats");
if ($do_full) {
- info("regenerating fmtutil.cnf in $TEXMFSYSVAR\n");
+ info("regenerating fmtutil.cnf in $TEXMFDIST\n");
TeXLive::TLUtils::create_fmtutil($localtlpdb,
- "$TEXMFSYSVAR/web2c/fmtutil.cnf",
- "$TEXMFLOCAL/web2c/fmtutil-local.cnf");
+ "$TEXMFDIST/web2c/fmtutil.cnf");
}
if ($opt_fmt && !$::regenerate_all_formats) {
# first regenerate all formats --byengine
@@ -4260,10 +4259,9 @@ sub action_generate {
}
} elsif ($what =~ m/^fmtutil$/i) {
- my $dest = $opts{"dest"} || "$TEXMFSYSVAR/web2c/fmtutil.cnf";
- my $localcfg = $opts{"localcfg"} || "$TEXMFLOCAL/web2c/fmtutil-local.cnf";
+ my $dest = $opts{"dest"} || "$TEXMFDIST/web2c/fmtutil.cnf";
debug("$prg: writing new fmtutil.cnf to $dest\n");
- TeXLive::TLUtils::create_fmtutil($localtlpdb, $dest, $localcfg);
+ TeXLive::TLUtils::create_fmtutil($localtlpdb, $dest);
if ($opts{"rebuild-sys"}) {
do_cmd_and_check("fmtutil-sys $common_fmtutil_args --all");
@@ -6304,8 +6302,6 @@ Line endings may be either LF or CRLF depending on the current platform.
=item B<generate language.dat.lua>
-=item B<generate fmtutil>
-
=back
The C<generate> action overwrites any manual changes made in the
@@ -6317,36 +6313,39 @@ all of these files.
For managing your own fonts, please read the C<updmap --help>
information and/or L<http://tug.org/fonts/fontinstall.html>.
+For managing your own formats, please read the C<fmtutil --help>
+information.
+
In more detail: C<generate> remakes any of the configuration files
-C<language.dat>, C<language.def>, C<language.dat.lua>, and
-C<fmtutil.cnf>, from the information present in the local TLPDB, plus
+C<language.dat>, C<language.def>, and C<language.dat.lua>
+from the information present in the local TLPDB, plus
locally-maintained files.
The locally-maintained files are C<language-local.dat>,
-C<language-local.def>, C<language-local.dat.lua>, or
-C<fmtutil-local.cnf>, searched for in C<TEXMFLOCAL> in the respective
+C<language-local.def>, or C<language-local.dat.lua>,
+searched for in C<TEXMFLOCAL> in the respective
directories. If local additions are present, the final file is made by
starting with the main file, omitting any entries that the local file
specifies to be disabled, and finally appending the local file.
-(Historical note: The formerly supported C<updmap-local.cfg> is no longer
-read, since C<updmap> now supports multiple C<updmap.cfg> files. Thus,
-local additions can and should be put into an C<updmap.cfg> file in
-C<TEXMFLOCAL>. The C<generate updmap> action no longer exists.)
+(Historical note: The formerly supported C<updmap-local.cfg> and
+C<fmtutil-local.cnf> are no longer read, since C<updmap> and C<fmtutil>
+now reads and supports multiple configuration files. Thus,
+local additions can and should be put into an C<updmap.cfg> of C<fmtutil.cnf>
+file in C<TEXMFLOCAL>. The C<generate updmap> and C<generate fmtutil> actions
+no longer exist.)
Local files specify entries to be disabled with a comment line, namely
one of these:
- #!NAME
%!NAME
--!NAME
-where C<fmtutil.cnf> uses C<#>, C<language.dat> and C<language.def> use
-C<%>, and C<language.dat.lua> use C<-->. In all cases, the I<name> is
+where C<language.dat> and C<language.def> use C<%>,
+and C<language.dat.lua> use C<-->. In all cases, the I<name> is
the respective format name or hyphenation pattern identifier.
Examples:
- #!pdflatex
%!german
--!usenglishmax
@@ -6403,7 +6402,6 @@ The respective locations are as follows:
tex/generic/config/language.dat (and language-local.dat);
tex/generic/config/language.def (and language-local.def);
tex/generic/config/language.dat.lua (and language-local.dat.lua);
- web2c/fmtutil.cnf (and fmtutil-local.cnf);
=head2 gui