From a0f2f92d8061cd9861314b924f8caebe6d43f133 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Thu, 1 May 2014 12:44:32 +0000 Subject: remove most code for old updmap-local.cfg compatibility git-svn-id: svn://tug.org/texlive/trunk@33778 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/scripts/texlive/updmap.pl | 43 +++++++---------------------- 1 file changed, 10 insertions(+), 33 deletions(-) (limited to 'Master') 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. -- cgit v1.2.3