X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fexternalaction.cpp;h=7e0a23de5021bcd7f3211fe201e7f85169727106;hb=5622fc20f0be8bff0938d24f6f45d3ab384288ca;hp=88c7e544e7907671daa82a6d8381f29f46257356;hpb=96e132661ec82c9347f9155d3f30cd99ea8eca47;p=builder.git diff --git a/source/externalaction.cpp b/source/externalaction.cpp index 88c7e54..7e0a23d 100644 --- a/source/externalaction.cpp +++ b/source/externalaction.cpp @@ -5,11 +5,12 @@ Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ -#include -#include #include #include +#include #include +#include +#include #include "builder.h" #include "externalaction.h" @@ -19,15 +20,7 @@ using namespace Msp; void ExternalAction::launch() { if(builder.get_verbose()>=2) - { - for(StringList::const_iterator i=argv.begin(); i!=argv.end(); ++i) - { - if(i!=argv.begin()) - cout<<' '; - cout<<*i; - } - cout<<'\n'; - } + IO::print("%s\n", join(argv.begin(), argv.end())); if(builder.get_dry_run()) pid=-1; @@ -46,7 +39,7 @@ void ExternalAction::launch() if(!work_dir.empty()) FS::chdir(work_dir); execvp(argv_[0], argv_); - cout<<"Couldn't execute "<