diff options
| author | Andrew Dunstan <andrew@dunslane.net> | 2011-04-07 22:16:56 -0400 | 
|---|---|---|
| committer | Andrew Dunstan <andrew@dunslane.net> | 2011-04-07 22:16:56 -0400 | 
| commit | a5c629f373a8125cd7682083a290fff452db3757 (patch) | |
| tree | fc30f86e710f4ad786fd81f3ab21c489a3398833 | |
| parent | bb3051e4c2d7b42516d55925edefb4934b902374 (diff) | |
Avoid use of mixed slash style paths in arguments to xcopy in MSVC builds.
Some versions of xcopy, notably on Windows 7 don't like it. Backpatch
to 8.3, where we first used xcopy.
| -rw-r--r-- | src/tools/msvc/Install.pm | 8 | 
1 files changed, 5 insertions, 3 deletions
| diff --git a/src/tools/msvc/Install.pm b/src/tools/msvc/Install.pm index d367bae1bf0..ead866291f8 100644 --- a/src/tools/msvc/Install.pm +++ b/src/tools/msvc/Install.pm @@ -437,15 +437,17 @@ sub CopyIncludeFiles      my $D;      opendir($D, 'src/include') || croak "Could not opendir on src/include!\n"; +	# some xcopy progs don't like mixed slash style paths +	(my $ctarget = $target) =~ s!/!\\!g;      while (my $d = readdir($D))      {          next if ($d =~ /^\./);          next if ($d eq '.git');          next if ($d eq 'CVS'); -        next unless (-d 'src/include/' . $d); +        next unless (-d "src/include/$d"); -        EnsureDirectories($target . '/include/server', $d); -        system("xcopy /s /i /q /r /y src\\include\\$d\\*.h \"$target\\include\\server\\$d\\\"") +        EnsureDirectories("$target/include/server/$d"); +        system(qq{xcopy /s /i /q /r /y src\\include\\$d\\*.h "$ctarget\\include\\server\\$d\\"})            && croak("Failed to copy include directory $d\n");      }      closedir($D); | 
