From 197174ead5e273bd0c8684d92752e1e8599d6656 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Sun, 03 Apr 2005 13:07:33 +0000 Subject: yet another fix to handling dependencies --- diff --git a/include/sitecing/component_factory.h b/include/sitecing/component_factory.h index a208ed1..9ddf70d 100644 --- a/include/sitecing/component_factory.h +++ b/include/sitecing/component_factory.h @@ -54,6 +54,10 @@ namespace sitecing { * @overload file_factory::build() */ virtual void build(const string& dst); + /** + * @overload file_factory::make() + */ + virtual void make(const string& dst); /** * Helper function for executing external command. diff --git a/lib/component_factory.cc b/lib/component_factory.cc index 5c18bb7..b5e95af 100644 --- a/lib/component_factory.cc +++ b/lib/component_factory.cc @@ -115,7 +115,6 @@ namespace sitecing { bool component_factory::is_uptodate(const string& dst,file_list_t *deps) { string dp = normalize_path(dst,strip_trailing_slash); - // XXX: or just compare it off, instead of throwing things around. try { string noro = strip_prefix(dp,root_intermediate); for(int ppt=0;(ppt+1)& args,int stdo,int stde) { // XXX: is it right that we do stdio/stderr tricks outside of the function? - cerr << "executing: " << cmd; + // cerr << "executing: " << cmd; vector argv(args.size()+2); argv[0]=cmd.c_str(); int an = 1; for(list::const_iterator i=args.begin();i!=args.end();i++) { - cerr << " " << *i ; + // cerr << " " << *i ; argv[an++] = i->c_str(); } - cerr << endl; + // cerr << endl; argv[an++]=NULL; pid_t pid = vfork(); if(pid==-1) { -- cgit v0.9.0.2