summaryrefslogtreecommitdiff
path: root/Build/source/texk/tetex/updmap.pl
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/tetex/updmap.pl')
-rwxr-xr-xBuild/source/texk/tetex/updmap.pl9
1 files changed, 6 insertions, 3 deletions
diff --git a/Build/source/texk/tetex/updmap.pl b/Build/source/texk/tetex/updmap.pl
index 407bac9e082..a1df217237a 100755
--- a/Build/source/texk/tetex/updmap.pl
+++ b/Build/source/texk/tetex/updmap.pl
@@ -462,8 +462,12 @@ sub cfgval {
if ($#cfg < 0) {
open FILE, "<$cnfFile" or die "can't open configuration file $cnfFile: $!";
- @cfg = <FILE>;
+ while (<FILE>) {
+ s/\s*$//; # strip trailing spaces
+ push @cfg, $_;
+ }
close FILE;
+ chomp (@cfg);
}
for my $line (@cfg) {
if ($line =~ m/^\s*${variable}[\s=]+(.*)\s*$/) {
@@ -573,7 +577,6 @@ sub locateMap {
my @maps = @_;
my @files;
- chomp @maps;
return @maps if ($#maps < 0);
@files = `kpsewhich --format=map @maps`;
@@ -581,7 +584,7 @@ sub locateMap {
foreach my $map (@maps) {
push @missing, $map if (! grep /\/$map$/, @files);
- }
+ }
if (wantarray) {
return @files;
}