diff options
author | Norbert Preining <preining@logic.at> | 2009-01-13 01:59:16 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2009-01-13 01:59:16 +0000 |
commit | 886d544ffc97f14654035ca64216410c72031d8e (patch) | |
tree | e46259581cf1571bd586f4d7c970b167d216dcb4 /Master | |
parent | 9bdbb5dbeed182b64efc105693fb2ab85aa80adf (diff) |
support $ret{'format-regenerate'} in handle_ret_hash
git-svn-id: svn://tug.org/texlive/trunk@11850 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rwxr-xr-x | Master/texmf/scripts/texlive/tlmgr2.pl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Master/texmf/scripts/texlive/tlmgr2.pl b/Master/texmf/scripts/texlive/tlmgr2.pl index 7f95a446b25..c046c1e4f7f 100755 --- a/Master/texmf/scripts/texlive/tlmgr2.pl +++ b/Master/texmf/scripts/texlive/tlmgr2.pl @@ -410,11 +410,17 @@ sub handle_ret_hash { "$TEXMFLOCAL/web2c/fmtutil-local.cnf"); # run fmtutil-sys only if the option for building formats is set. my $fmt = $localtlpdb->option_create_formats; - if ($localtlpdb->option_create_formats) { + if ($localtlpdb->option_create_formats && !$ret{'format-regenerate'}) { info("running fmtutil-sys --missing\n"); $errors += system("fmtutil-sys", "--missing"); } } + if (defined($ret{'format-regenerate'})) { + my $a = "--refresh"; + $a = "--all" if $localtlpdb->option_create_formats; + info("running fmtutil-sys $a\n"); + $errors += system("fmtutil-sys", $a); + } if (defined($ret{'language'})) { for my $ext ("dat", "def") { |