aboutsummaryrefslogtreecommitdiff
path: root/src/performcmd.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-07-31 22:50:47 +0000
committerMike Buland <eichlan@xagasoft.com>2006-07-31 22:50:47 +0000
commit73d53b0962cb19a6d2a7686de658a5540ab07017 (patch)
tree9a8fd737b8f77ec9ccab43d89dc54b7e72d4d90d /src/performcmd.cpp
parentb672fa69c4c98509f8ee251b87300e3fcbe6bdc8 (diff)
downloadbuild-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.cpp19
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
4PerformCmd::PerformCmd( const char *sCmd, const char *sTarget ) :
5 sCommand( sCmd ),
6 sTarget( sTarget )
7{
8}
9
10PerformCmd::~PerformCmd()
11{
12}
13
14void PerformCmd::execute( class Builder &bld )
15{
16 printf("%s\n", sCommand.getString() );
17 system( sCommand.getString() );
18}
19