bugfix: some old version of "cp" does not support trailing slashes in the destination argument and could break the ./configure script. thanks Weibin Yao for reporting it.

This commit is contained in:
agentzh (章亦春)
2011-12-16 14:50:02 +08:00
parent 893262d13a
commit d0fc49168d
3 changed files with 98 additions and 98 deletions

8
util/configure vendored
View File

@ -401,14 +401,14 @@ _END_
}
if (-d 'build') {
system("rm -rf build");
system("rm -rf build") == 0 or
die "failed to remove directory build/.\n";
}
if (-f 'build') {
die "build/ directory already exists\n";
die "file \"build\" already exists. please remove it first.\n";
}
shell "cp -rp bundle/ build/";
shell "cp -rp bundle/ build";
cd 'build';