diff options
author | Norbert Preining <preining@logic.at> | 2010-01-07 15:39:30 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2010-01-07 15:39:30 +0000 |
commit | f3d74515a3519965610afcbeeacd259600a6917f (patch) | |
tree | 11bc853f6d7dfbc1a9b620382a333b699eb8d8e8 | |
parent | d25d8d2f1353904a9eb2f8e5dc7a6e7ec6f0477a (diff) |
support tlmgr generate --rebuild-sys updmap
git-svn-id: svn://tug.org/texlive/trunk@16630 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-x | Master/texmf/scripts/texlive/tlmgr.pl | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl index b504524b517..e4bcdb8b08b 100755 --- a/Master/texmf/scripts/texlive/tlmgr.pl +++ b/Master/texmf/scripts/texlive/tlmgr.pl @@ -167,7 +167,8 @@ sub main { "dry-run|n" => 1 }, "arch" => { "dry-run|n" => 1 }, "generate" => { "localcfg" => "=s", - "dest" => "=s" }, + "dest" => "=s", + "rebuild-sys" => 1 }, "path" => { "w32mode" => "=s" }, "postaction" => {"w32mode" => "=s", "all" => 1, @@ -3008,6 +3009,12 @@ sub action_generate { debug("$0: writing new updmap.cfg to $dest\n"); TeXLive::TLUtils::create_updmap($localtlpdb, $dest, $localconf); + if ($opts{"rebuild-sys"}) { + do_cmd_and_check("updmap-sys"); + } else { + info("To make the newly-generated updmap.cfg take effect, run updmap-sys.\n"); + } + } else { die "$0: Unknown option for generate: $what; try --help if you need it.\n"; } @@ -5056,6 +5063,11 @@ output file, we recommend invoking C<tlmgr> twice.) specifies the (optional) local additions (defaults to the respective location in C<TEXMFLOCAL>). +=item B<--rebuild-sys> + +makes tlmgr call C<updmap-sys> after (re-)generating the updmap.cfg +file. This is necessary to actually make the changes take effect. + =back The respective locations are as follows: |