git-svn-id: svn://db.shs.com.ru/libs@821 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -4,13 +4,14 @@
|
||||
|
||||
using namespace PICoutManipulators;
|
||||
|
||||
PIString cmd_copy, cmd_copydir;
|
||||
PIString cmd_copy, cmd_copydir, cmd_suffix;
|
||||
PIString qplatforms;
|
||||
|
||||
void setCommands() {
|
||||
#ifdef WINDOWS
|
||||
cmd_copy = "copy /y ";
|
||||
cmd_copydir = "copy /y ";
|
||||
cmd_suffix = " 1> NUL";
|
||||
qplatforms = "windows";
|
||||
#else
|
||||
cmd_copy = "cp -f ";
|
||||
@@ -206,9 +207,9 @@ void copyWildcard(const PIString & from, const PIString & to) {
|
||||
PIDir(to).make();
|
||||
#ifdef WINDOWS
|
||||
PIFile::FileInfo fi; fi.path = from;
|
||||
system("robocopy \"" + fi.dir() + "\" \"" + to + "\" \"" + fi.name() + "\" /NJH /NJS /NP /NDL /NS /NC /NFL");
|
||||
system("robocopy \"" + fi.dir() + "\" \"" + to + "\" \"" + fi.name() + "\" /NJH /NJS /NP /NDL /NS /NC /NFL 1> NUL");
|
||||
#else
|
||||
system(cmd_copy + from + " \"" + to + "/\"");
|
||||
system(cmd_copy + from + " \"" + to + "/\"" + cmd_suffix);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -357,7 +358,7 @@ int main(int argc, char * argv[]) {
|
||||
piForeachC (PIString & l, clibs) {
|
||||
piCout << "copy" << l;
|
||||
if (!fake)
|
||||
system(cmd_copy + "\"" + l + "\" \"" + out_dir + "\"");
|
||||
system(cmd_copy + "\"" + l + "\" \"" + out_dir + "\"" + cmd_suffix);
|
||||
}
|
||||
PIVector<PIString> fwdirs = frameworks.toVector();
|
||||
piForeachC (PIString & f, fwdirs) {
|
||||
@@ -365,7 +366,7 @@ int main(int argc, char * argv[]) {
|
||||
if (!fd.isEmpty()) {
|
||||
piCout << "copy framework" << f;
|
||||
if (!fake)
|
||||
system(cmd_copydir + "\"" + fd + "\" \"" + out_dir + "\"");
|
||||
system(cmd_copydir + "\"" + fd + "\" \"" + out_dir + "\"" + cmd_suffix);
|
||||
} else
|
||||
miss_frameworks << f;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user