avoid use of symlinks on Windows: it causes problems on some build environments
This commit is contained in:
parent
efd031abca
commit
32b56fe4d2
@ -52,6 +52,7 @@ my $to = join('/', @to_path);
|
|||||||
my $file;
|
my $file;
|
||||||
$symlink_exists=eval {symlink("",""); 1};
|
$symlink_exists=eval {symlink("",""); 1};
|
||||||
if ($^O eq "msys") { $symlink_exists=0 };
|
if ($^O eq "msys") { $symlink_exists=0 };
|
||||||
|
if ($^O eq "MSWin32") { $symlink_exists=0 };
|
||||||
foreach $file (@files) {
|
foreach $file (@files) {
|
||||||
my $err = "";
|
my $err = "";
|
||||||
if ($symlink_exists) {
|
if ($symlink_exists) {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
rm -f "$2"
|
rm -f "$2"
|
||||||
if test "$OSTYPE" = msdosdjgpp || test "x$PLATFORM" = xmingw ; then
|
if test "$OSTYPE" = msdosdjgpp || test "x$PLATFORM" = xmingw || test "x$OS" = xWindows_NT ; then
|
||||||
cp "$1" "$2"
|
cp "$1" "$2"
|
||||||
else
|
else
|
||||||
ln -s "$1" "$2"
|
ln -s "$1" "$2"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user