aboutsummaryrefslogtreecommitdiff
path: root/src/performcmd.cpp
diff options
context:
space:
mode:
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