diff options
Diffstat (limited to '')
| -rw-r--r-- | src/performcmd.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/performcmd.cpp b/src/performcmd.cpp deleted file mode 100644 index 8eafc66..0000000 --- a/src/performcmd.cpp +++ /dev/null | |||
| @@ -1,25 +0,0 @@ | |||
| 1 | #include "performcmd.h" | ||
| 2 | #include "builder.h" | ||
| 3 | #include "viewer.h" | ||
| 4 | |||
| 5 | PerformCmd::PerformCmd( const char *sCmd, const char *sTarget ) : | ||
| 6 | Perform( sTarget ), | ||
| 7 | sCommand( sCmd ) | ||
| 8 | { | ||
| 9 | } | ||
| 10 | |||
| 11 | PerformCmd::~PerformCmd() | ||
| 12 | { | ||
| 13 | } | ||
| 14 | |||
| 15 | void PerformCmd::execute( class Builder &bld ) | ||
| 16 | { | ||
| 17 | bld.view().executeCmd( sCommand ); | ||
| 18 | int ret; | ||
| 19 | if( (ret = system( sCommand.getString() )) != 0 ) | ||
| 20 | { | ||
| 21 | printf("Error code: %d\n", WEXITSTATUS(ret) ); | ||
| 22 | exit( WEXITSTATUS(ret) ); | ||
| 23 | } | ||
| 24 | } | ||
| 25 | |||
