From 52be1ef0d126f09ba943c7afcf367e7d9347f2fd Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 8 Nov 2012 22:58:28 +0000 Subject: tabconv: it's all spaces now. --- src/conditionfiletime.cpp | 100 +++++++++++++++++++++++----------------------- 1 file changed, 50 insertions(+), 50 deletions(-) (limited to 'src/conditionfiletime.cpp') diff --git a/src/conditionfiletime.cpp b/src/conditionfiletime.cpp index 43df53b..82d147c 100644 --- a/src/conditionfiletime.cpp +++ b/src/conditionfiletime.cpp @@ -10,7 +10,7 @@ using namespace Bu; #include PluginInterface3( pluginConditionFileTime, fileTime, ConditionFileTime, - Condition, "Mike Buland", 0, 1 ); + Condition, "Mike Buland", 0, 1 ); ConditionFileTime::ConditionFileTime() { @@ -22,59 +22,59 @@ ConditionFileTime::~ConditionFileTime() bool ConditionFileTime::shouldExec( class Runner &r, Target &rTarget ) { - for( StrList::const_iterator j = rTarget.getOutputList().begin(); j; j++ ) - { - if( access( (*j).getStr(), F_OK ) ) - { - //sio << "-- Target processed because '" << *j << "' doesn't exist." - // << sio.nl; - // Output doesn't exist - rTarget.buildRequires( r ); - return true; - } - } + for( StrList::const_iterator j = rTarget.getOutputList().begin(); j; j++ ) + { + if( access( (*j).getStr(), F_OK ) ) + { + //sio << "-- Target processed because '" << *j << "' doesn't exist." + // << sio.nl; + // Output doesn't exist + rTarget.buildRequires( r ); + return true; + } + } - time_t tOut = 0; - struct stat s; - for( StrList::const_iterator j = rTarget.getOutputList().begin(); - j; j++ ) - { - stat( (*j).getStr(), &s ); - if( tOut == 0 || tOut > s.st_mtime ) - { - tOut = s.st_mtime; - } - } - for( StrList::const_iterator j = rTarget.getInputList().begin(); - j; j++ ) - { - stat( (*j).getStr(), &s ); - if( tOut < s.st_mtime ) - { - //sio << "-- Target processed because '" << *j - // << "' is newer than output." << sio.nl; - rTarget.buildRequires( r ); - return true; - } - } - rTarget.gatherRequires( r ); - for( StrList::const_iterator j = rTarget.getRequiresList().begin(); - j; j++ ) - { - stat( (*j).getStr(), &s ); - if( tOut < s.st_mtime ) - { - //sio << "-- Target processed because '" << *j - // << "' is newer than output." << sio.nl; - rTarget.buildRequires( r ); - return true; - } - } - return false; + time_t tOut = 0; + struct stat s; + for( StrList::const_iterator j = rTarget.getOutputList().begin(); + j; j++ ) + { + stat( (*j).getStr(), &s ); + if( tOut == 0 || tOut > s.st_mtime ) + { + tOut = s.st_mtime; + } + } + for( StrList::const_iterator j = rTarget.getInputList().begin(); + j; j++ ) + { + stat( (*j).getStr(), &s ); + if( tOut < s.st_mtime ) + { + //sio << "-- Target processed because '" << *j + // << "' is newer than output." << sio.nl; + rTarget.buildRequires( r ); + return true; + } + } + rTarget.gatherRequires( r ); + for( StrList::const_iterator j = rTarget.getRequiresList().begin(); + j; j++ ) + { + stat( (*j).getStr(), &s ); + if( tOut < s.st_mtime ) + { + //sio << "-- Target processed because '" << *j + // << "' is newer than output." << sio.nl; + rTarget.buildRequires( r ); + return true; + } + } + return false; } Condition *ConditionFileTime::clone() { - return new ConditionFileTime(); + return new ConditionFileTime(); } -- cgit v1.2.3