summaryrefslogtreecommitdiff
path: root/Master/install-tl
diff options
context:
space:
mode:
Diffstat (limited to 'Master/install-tl')
-rwxr-xr-xMaster/install-tl11
1 files changed, 11 insertions, 0 deletions
diff --git a/Master/install-tl b/Master/install-tl
index 3f90ebe861d..05e21982ba7 100755
--- a/Master/install-tl
+++ b/Master/install-tl
@@ -1042,6 +1042,16 @@ operations might be disturbed.\n\n";
my $perl_bindir="$TEXDIR/tlpkg/tlperl/bin";
my $perl_libdir="$TEXDIR/tlpkg/tlperl/lib";
+ if (win32) {
+ debug("Removing other TeXs from path\n");
+ my @newpt = ();
+ foreach my $d (split (';', $ENV{'PATH'})) {
+ push @newpt, $d unless TeXLive::TLWinGoo::is_a_texdir($d);
+ }
+ $ENV{'PATH'} = join($pathsep, @newpt);
+ debug("Path after removals(s):\n $ENV{'PATH'}\n");
+ }
+
debug("Prepending $plat_bindir to PATH\n");
$ENV{'PATH'}="$plat_bindir" . "$pathsep" . "$ENV{'PATH'}";
@@ -1049,6 +1059,7 @@ operations might be disturbed.\n\n";
if (win32) {
debug("Prepending $perl_bindir to PATH\n");
$ENV{'PATH'}="$perl_bindir" . "$pathsep" . "$ENV{'PATH'}";
+ $ENV{'PATH'} =~ s!/!\\!g;
}
debug("\nNew PATH is now:\n");