From: ishmal Date: Wed, 15 Nov 2006 19:36:35 +0000 (+0000) Subject: improve status msgs X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b255221f0a800e5a6714266b54a31628d49cdaa8;p=inkscape.git improve status msgs --- diff --git a/buildtool.cpp b/buildtool.cpp index a0f5e1630..606214784 100644 --- a/buildtool.cpp +++ b/buildtool.cpp @@ -2323,6 +2323,10 @@ bool MakeBase::executeCommand(const String &command, String &outbuf, String &errbuf) { + + status("-------- cmd --------\n%s\n---------------------", + command.c_str()); + #ifdef __WIN32__ bool ret = true; @@ -4622,7 +4626,7 @@ public: cmd.append(" "); cmd.append(fullName); } - //trace("AR %d: %s", fileSet.size(), cmd.c_str()); + String outString, errString; if (!executeCommand(cmd.c_str(), "", outString, errString)) { @@ -4786,7 +4790,7 @@ public: cmd.append(destFullName); //## Execute the command - trace("cmd: %s", cmd.c_str()); + String outString, errString; if (!executeCommand(cmd.c_str(), "", outString, errString)) { @@ -4892,6 +4896,7 @@ public: { if (fileName.size()>0) { + status(" : %s", fileName.c_str()); String fullSource = parent.resolve(fileName); String fullDest = parent.resolve(toFileName); //trace("copy %s to file %s", fullSource.c_str(), @@ -4902,6 +4907,7 @@ public: } if (!copyFile(fullSource, fullDest)) return false; + status(" : 1 file copied"); } return true; } @@ -4909,6 +4915,8 @@ public: { if (haveFileSet) { + int nrFiles = 0; + status(" : %s", fileSetDir.c_str()); for (unsigned int i=0 ; idir we want only the basename of //the source appended to the dest dir + status(" : %s", fileName.c_str()); String baseName = fileName; int pos = baseName.find_last_of('/'); if (pos > 0 && pos cmd:%s", cmd.c_str()); String outbuf, errbuf; if (!executeCommand(cmd, "", outbuf, errbuf)) return false; @@ -5554,7 +5571,6 @@ public: cmd.append(" "); cmd.append(fullFile); - trace("cmd: %s", cmd.c_str()); String outString, errString; if (!executeCommand(cmd.c_str(), "", outString, errString)) { @@ -5616,7 +5632,7 @@ public: //trace("fullDir:%s", fullDir.c_str()); String cmd = "strip "; cmd.append(fullName); - trace(" cmd:%s", cmd.c_str()); + String outbuf, errbuf; if (!executeCommand(cmd, "", outbuf, errbuf)) return false; @@ -6145,14 +6161,14 @@ bool Make::executeTarget(Target &target, } } - status("##### Target : %s", name.c_str()); + status("## Target : %s", name.c_str()); //Now let's do the tasks std::vector &tasks = target.getTasks(); for (unsigned int i=0 ; igetName().c_str()); + status("---- task : %s", task->getName().c_str()); if (!task->execute()) { return false;