diff options
Diffstat (limited to '')
-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 | |||