summaryrefslogtreecommitdiff
path: root/Master/texmf
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2010-01-10 00:52:58 +0000
committerNorbert Preining <preining@logic.at>2010-01-10 00:52:58 +0000
commit125cb0452345f357296060037e22c05ddb86dfb0 (patch)
treeb9b3b975fd8637d397e313593ec2ffb10be205ea /Master/texmf
parentc73c58ae351884f237dd3f0882f01596389f0120 (diff)
tlmgr: give a warning with --dest and --rebuild-sys is given in language
git-svn-id: svn://tug.org/texlive/trunk@16653 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf')
-rwxr-xr-xMaster/texmf/scripts/texlive/tlmgr.pl10
1 files changed, 8 insertions, 2 deletions
diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl
index 3d26f91b238..4f5bdae1a53 100755
--- a/Master/texmf/scripts/texlive/tlmgr.pl
+++ b/Master/texmf/scripts/texlive/tlmgr.pl
@@ -2980,10 +2980,16 @@ sub action_generate {
if ($what =~ m/^language(\.dat|\.def)?$/i) {
#
+ # if --rebuild-sys is given *and* --dest we warn that this might not
+ # work if the destination is not the default one
+ if ($opts{"rebuild-sys"} && $dest) {
+ tlwarn("tlmgr generate $what: --rebuild-sys and --dest given.\n");
+ tlwarn("The call to fmtutil-sys can fail if the given destination does\n");
+ tlwarn("not conincide with the default one.\n");
+ }
+ #
# we have to set TEXMFVAR, TEXMFCONFIG in the environment so that
# searching for language.(dat/def) does search in the right place
- my $ldat;
- my $ldef;
if ($what =~ m/^language(\.dat)?$/i) {
$dest ||= "$TEXMFSYSVAR/tex/generic/config/language.dat";
$localconf ||= "$TEXMFLOCAL/tex/generic/config/language-local.dat";