summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/texlive/updmap.pl
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2014-05-01 12:44:32 +0000
committerNorbert Preining <preining@logic.at>2014-05-01 12:44:32 +0000
commita0f2f92d8061cd9861314b924f8caebe6d43f133 (patch)
treee36c6b05fb40e08a4e613797314f9354b8f3cea9 /Master/texmf-dist/scripts/texlive/updmap.pl
parentc888832b0ad39bfbdaa55c508522453a5299f91f (diff)
remove most code for old updmap-local.cfg compatibility
git-svn-id: svn://tug.org/texlive/trunk@33778 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/texlive/updmap.pl')
-rwxr-xr-xMaster/texmf-dist/scripts/texlive/updmap.pl43
1 files changed, 10 insertions, 33 deletions
diff --git a/Master/texmf-dist/scripts/texlive/updmap.pl b/Master/texmf-dist/scripts/texlive/updmap.pl
index 98fc7d0e561..a389225de7f 100755
--- a/Master/texmf-dist/scripts/texlive/updmap.pl
+++ b/Master/texmf-dist/scripts/texlive/updmap.pl
@@ -17,7 +17,6 @@
#
# TODO
# - check all other invocations
-# - after TL2012? Maybe remove support for reading updmap-local.cfg
my $TEXMFROOT;
@@ -267,26 +266,22 @@ sub main {
}
#
# search for TEXMFLOCAL/web2c/updmap.cfg
- # check for compatibility with old updmap-local.cfg
my @tmlused;
for my $tml (@TEXMFLOCAL) {
my $TMLabs = Cwd::abs_path($tml);
next if (!$TMLabs);
- my $oldfound = 0;
- if (-r "$TMLabs/web2c/updmap-local.cfg") {
- push @tmlused, "$TMLabs/web2c/updmap-local.cfg";
- warning("Old configuration file\n $TMLabs/web2c/updmap-local.cfg\nfound! ");
- $oldfound = 1;
- }
if (-r "$TMLabs/web2c/updmap.cfg") {
- if ($oldfound) {
- warning("Will read it *instead* of\n $TMLabs/web2c/updmap.cfg\n");
- } else {
- push @tmlused, "$TMLabs/web2c/updmap.cfg";
- }
+ push @tmlused, "$TMLabs/web2c/updmap.cfg";
+ }
+ #
+ # at least check for old updmap-local.cfg and warn!
+ if (-r "$TMLabs/web2c/updmap-local.cfg") {
+ warning("=============================\n");
+ warning("Old configuration file\n $TMLabs/web2c/updmap-local.cfg\n");
+ warning("found! This file is *not* evaluated anymore, please move the information\n");
+ warning("to the file $TMLabs/updmap.cfg!\n");
+ warning("=============================\n");
}
- warning("Please consider moving the information from updmap-local.cfg to\n $TMLabs/web2c/updmap.cfg\n")
- if ($oldfound);
}
#
# updmap (user):
@@ -1901,7 +1896,6 @@ sub merge_settings_replace_kanji {
sub read_updmap_file {
my $fn = shift;
- my $is_old_local = ($fn =~ m/updmap-local.cfg/ ? 1 : 0);
my %data;
if (!open(FN,"<$fn")) {
die ("Cannot read $fn: $!");
@@ -1915,15 +1909,6 @@ sub read_updmap_file {
for (@lines) {
$i++;
chomp;
- if ($is_old_local) {
- # in case we read an old updmap-local.cfg we have to make sure
- # that the disable lines
- # ^#!foo.map
- # are rewritten to proper disable lines
- # ^#! Map foo.map
- # we are guessing here the type of the map (namely Map)
- $_ =~ s/^#!([^ ])/#! Map $1/;
- }
next if /^\s*$/;
next if /^\s*#$/;
next if /^\s*#[^!]/;
@@ -2297,14 +2282,6 @@ Explanation of trees and files normally used:
(where YYYY is the TeX Live release version).
- There is one exception to keep upgradability from earlier versions
- of TeX Live: if a file TEXMFLOCAL/web2c/updmap-local.cfg exists
- (formerly used by tlmgr to merge local fonts), then the file
- TEXMFLOCAL/web2c/updmap.cfg is ignored (if it exists) and that
- updmap-local.cfg is used instead. In this case, updmap recognizes the
- previous syntax for disabling map files in updmap-local.cfg (this
- syntax is different from what is used now).
-
According to the actions, updmap might write to one of the given files
or create a new updmap.cfg, described further below.