aboutsummaryrefslogtreecommitdiff
path: root/src/conditionfileexists.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/conditionfileexists.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/conditionfileexists.cpp b/src/conditionfileexists.cpp
index 0585351..fd21716 100644
--- a/src/conditionfileexists.cpp
+++ b/src/conditionfileexists.cpp
@@ -10,7 +10,7 @@ using namespace Bu;
10 10
11#include <bu/plugger.h> 11#include <bu/plugger.h>
12PluginInterface3( pluginConditionFileExists, fileExists, ConditionFileExists, 12PluginInterface3( pluginConditionFileExists, fileExists, ConditionFileExists,
13 Condition, "Mike Buland", 0, 1 ); 13 Condition, "Mike Buland", 0, 1 );
14 14
15ConditionFileExists::ConditionFileExists() 15ConditionFileExists::ConditionFileExists()
16{ 16{
@@ -22,20 +22,20 @@ ConditionFileExists::~ConditionFileExists()
22 22
23bool ConditionFileExists::shouldExec( class Runner &r, Target &rTarget ) 23bool ConditionFileExists::shouldExec( class Runner &r, Target &rTarget )
24{ 24{
25 for( StrList::const_iterator j = rTarget.getOutputList().begin(); j; j++ ) 25 for( StrList::const_iterator j = rTarget.getOutputList().begin(); j; j++ )
26 { 26 {
27 // If any input exists, then return true, we should exec. 27 // If any input exists, then return true, we should exec.
28 if( !access( (*j).getStr(), F_OK ) ) 28 if( !access( (*j).getStr(), F_OK ) )
29 { 29 {
30 return true; 30 return true;
31 } 31 }
32 } 32 }
33 33
34 return false; 34 return false;
35} 35}
36 36
37Condition *ConditionFileExists::clone() 37Condition *ConditionFileExists::clone()
38{ 38{
39 return new ConditionFileExists(); 39 return new ConditionFileExists();
40} 40}
41 41