diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2006-09-12 17:30:23 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2006-09-12 17:30:23 +0000 |
| commit | e2c430b237da5c0229fd8e0832eedc3b85045ec0 (patch) | |
| tree | 2f14481a9622c1d9ee913456f12ffb6cdfd53eef /src/performcommand.cpp | |
| parent | daa9ab77fa7ff88a77e028270ec32fa4f3e6d3bb (diff) | |
| download | build-e2c430b237da5c0229fd8e0832eedc3b85045ec0.tar.gz build-e2c430b237da5c0229fd8e0832eedc3b85045ec0.tar.bz2 build-e2c430b237da5c0229fd8e0832eedc3b85045ec0.tar.xz build-e2c430b237da5c0229fd8e0832eedc3b85045ec0.zip | |
Added cache functionality, which is really nice, things go much faster now.
Diffstat (limited to 'src/performcommand.cpp')
| -rw-r--r-- | src/performcommand.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/performcommand.cpp b/src/performcommand.cpp index f6da4ac..5a9e746 100644 --- a/src/performcommand.cpp +++ b/src/performcommand.cpp | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | #include "performcommand.h" | 1 | #include "performcommand.h" |
| 2 | #include "plugger.h" | 2 | #include "plugger.h" |
| 3 | #include "build.h" | ||
| 3 | 4 | ||
| 4 | PluginInterface2(command, PerformCommand, Perform, "Mike Buland", 0, 1 ); | 5 | PluginInterface2(command, PerformCommand, Perform, "Mike Buland", 0, 1 ); |
| 5 | 6 | ||
| @@ -20,6 +21,11 @@ Perform *PerformCommand::duplicate( Build &bld, const std::string &cont, VarMap | |||
| 20 | 21 | ||
| 21 | void PerformCommand::execute( Build &bld ) | 22 | void PerformCommand::execute( Build &bld ) |
| 22 | { | 23 | { |
| 23 | system( lParam.front().c_str() ); | 24 | int n = system( lParam.front().c_str() ); |
| 25 | if( n != 0 ) | ||
| 26 | throw BuildException( | ||
| 27 | "Command exited with error code %d.", | ||
| 28 | WEXITSTATUS(n) | ||
| 29 | ); | ||
| 24 | } | 30 | } |
| 25 | 31 | ||
