diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-07-31 22:50:47 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-07-31 22:50:47 +0000 |
commit | 73d53b0962cb19a6d2a7686de658a5540ab07017 (patch) | |
tree | 9a8fd737b8f77ec9ccab43d89dc54b7e72d4d90d /src/performcmd.cpp | |
parent | b672fa69c4c98509f8ee251b87300e3fcbe6bdc8 (diff) | |
download | build-73d53b0962cb19a6d2a7686de658a5540ab07017.tar.gz build-73d53b0962cb19a6d2a7686de658a5540ab07017.tar.bz2 build-73d53b0962cb19a6d2a7686de658a5540ab07017.tar.xz build-73d53b0962cb19a6d2a7686de658a5540ab07017.zip |
It almost builds, we need to get rid of duplicate list entries and actually
store the commands somewhere so the target handler can decide if they need to
be run.
Diffstat (limited to 'src/performcmd.cpp')
-rw-r--r-- | src/performcmd.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/performcmd.cpp b/src/performcmd.cpp new file mode 100644 index 0000000..21ba737 --- /dev/null +++ b/src/performcmd.cpp | |||
@@ -0,0 +1,19 @@ | |||
1 | #include "performcmd.h" | ||
2 | #include "builder.h" | ||
3 | |||
4 | PerformCmd::PerformCmd( const char *sCmd, const char *sTarget ) : | ||
5 | sCommand( sCmd ), | ||
6 | sTarget( sTarget ) | ||
7 | { | ||
8 | } | ||
9 | |||
10 | PerformCmd::~PerformCmd() | ||
11 | { | ||
12 | } | ||
13 | |||
14 | void PerformCmd::execute( class Builder &bld ) | ||
15 | { | ||
16 | printf("%s\n", sCommand.getString() ); | ||
17 | system( sCommand.getString() ); | ||
18 | } | ||
19 | |||