diff options
author | Norbert Preining <preining@logic.at> | 2012-05-14 15:00:53 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2012-05-14 15:00:53 +0000 |
commit | b3046a9dfc4a6f9effd7ba23d29ec3335a5ce36b (patch) | |
tree | 21260756ef09ed41f8a41b91c707a18729521148 /Build/source | |
parent | b41f91b430a484dec51c124f6fd72b01fdb7aeec (diff) |
try to update the lsR database if a config file is created
git-svn-id: svn://tug.org/texlive/trunk@26369 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rwxr-xr-x | Build/source/texk/texlive/linked_scripts/texlive/updmap.pl | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Build/source/texk/texlive/linked_scripts/texlive/updmap.pl b/Build/source/texk/texlive/linked_scripts/texlive/updmap.pl index a8d39465f65..990e53f7d68 100755 --- a/Build/source/texk/texlive/linked_scripts/texlive/updmap.pl +++ b/Build/source/texk/texlive/linked_scripts/texlive/updmap.pl @@ -348,6 +348,10 @@ sub main { exit 0; } + # what does this? + $updLSR = &mktexupd(); + $updLSR->{mustexist}(0); + my $cmd; if ($opts{'edit'}) { if ($opts{"dry-run"}) { @@ -376,9 +380,6 @@ sub main { $changed ||= enable_disable_maps(@{$opts{'enable'}}, @{$opts{'disable'}}); } - # what does this? - $updLSR = &mktexupd(); - $updLSR->{mustexist}(0); if ($cmd && !$opts{'force'} && !$changed) { print "$changes_config_file unchanged. Map files not recreated.\n" @@ -1332,6 +1333,10 @@ sub save_updmap { } close(FN) || warn("Cannot close file handle for $fn: $!"); delete $alldata->{'updmap'}{$fn}{'changed'}; + # + # update lsR database + $updLSR->{add}($fn); + # return 1; } return 0; |