summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2008-09-12 20:38:06 +0000
committerNorbert Preining <preining@logic.at>2008-09-12 20:38:06 +0000
commitd64b21731fdb715233aab1053095fd14111214bd (patch)
tree52ed4d980be647d4d42ccbadcf66409d5029e300 /Master
parentaa77a296f9898ad9dbdc806f6ad5ad318bd661d4 (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')
-rwxr-xr-xMaster/texmf/scripts/texlive/tlmgr.pl5
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.