X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fexternalaction.cpp;h=5d01f4f701071fd4b330b26618b897899a59110d;hb=a2adbd9c0a8d7a7567848c4c6bdbf0de6ba32bb1;hp=de799e4c550877e91927d8b85bcd5596d2b9b3f0;hpb=445edbc3c42bbd7880cc414cf153ddfd196bfc1c;p=builder.git diff --git a/source/externalaction.cpp b/source/externalaction.cpp index de799e4..5d01f4f 100644 --- a/source/externalaction.cpp +++ b/source/externalaction.cpp @@ -1,5 +1,15 @@ +/* $Id$ + +This file is part of builder +Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + #include #include +#include +#include +#include #include "builder.h" #include "externalaction.h" @@ -62,6 +72,8 @@ void ExternalAction::launch() argv_[j++]=strdup(i->c_str()); argv_[j]=0; + if(!work_dir.empty()) + FS::chdir(work_dir); execvp(argv_[0], argv_); cout<<"Couldn't execute "<