Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita531123

Browse files
committed
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. Backpatchto 8.3, where we first used xcopy.
1 parent56c7140 commita531123

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎src/tools/msvc/Install.pm

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,15 +479,17 @@ sub CopyIncludeFiles
479479
my$D;
480480
opendir($D,'src/include') || croak"Could not opendir on src/include!\n";
481481

482+
# some xcopy progs don't like mixed slash style paths
483+
(my$ctarget =$target) =~s!/!\\!g;
482484
while (my$d =readdir($D))
483485
{
484486
nextif ($d =~/^\./);
485487
nextif ($deq'.git');
486488
nextif ($deq'CVS');
487-
nextunless (-d'src/include/' .$d);
489+
nextunless (-d"src/include/$d");
488490

489-
EnsureDirectories($target .'/include/server',$d);
490-
system("xcopy /s /i /q /r /y src\\include\\$d\\*.h\"$target\\include\\server\\$d\\\"")
491+
EnsureDirectories("$target/include/server/$d");
492+
system(qq{xcopy /s /i /q /r /y src\\include\\$d\\*.h"$ctarget\\include\\server\\$d\\"})
491493
&& croak("Failed to copy include directory$d\n");
492494
}
493495
closedir($D);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp