+/* $Id$
+
+This file is part of builder
+Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
#include <sys/wait.h>
#include <iostream>
+#include <cstring>
+#include <cstdlib>
+#include <msp/fs/dir.h>
#include "builder.h"
#include "externalaction.h"
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 "<<argv.front()<<'\n';
exit(1);