diff options
author | Norbert Preining <preining@logic.at> | 2008-09-12 20:38:06 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2008-09-12 20:38:06 +0000 |
commit | d64b21731fdb715233aab1053095fd14111214bd (patch) | |
tree | 52ed4d980be647d4d42ccbadcf66409d5029e300 /Master/texmf/scripts | |
parent | aa77a296f9898ad9dbdc806f6ad5ad318bd661d4 (diff) |
allow "ctan" as argument to tlmgr option location ctan ...
git-svn-id: svn://tug.org/texlive/trunk@10576 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/scripts')
-rwxr-xr-x | Master/texmf/scripts/texlive/tlmgr.pl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl index 840fff48f12..bca17103e51 100755 --- a/Master/texmf/scripts/texlive/tlmgr.pl +++ b/Master/texmf/scripts/texlive/tlmgr.pl @@ -841,8 +841,11 @@ sub action_option { # changes the default location my $loc = shift @ARGV; if ($loc) { + # support "ctan" on the cmd line, and don't abs_path it! + if ($loc =~ m/^ctan$/i) { + $loc = "$TeXLive::TLConfig::TeXLiveURL"; + } # normalize the path - # if it is an my $testloc = abs_path($loc); # however, if we were given a url, that will get "normalized" to the # empty string, it not being a path. Restore the original value if so. |