diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2006-08-18 17:21:02 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2006-08-18 17:21:02 +0000 |
| commit | df5286fe3bca619beb4771da1ffa8ace9613e9e5 (patch) | |
| tree | 0ad268267325c586527b8d36461ab0040e9ae8ec /src/performcmd.cpp | |
| parent | 4f94dfde7cbe043dfeb11a8712636bac348d3177 (diff) | |
| download | build-df5286fe3bca619beb4771da1ffa8ace9613e9e5.tar.gz build-df5286fe3bca619beb4771da1ffa8ace9613e9e5.tar.bz2 build-df5286fe3bca619beb4771da1ffa8ace9613e9e5.tar.xz build-df5286fe3bca619beb4771da1ffa8ace9613e9e5.zip | |
Gutted, deleted almost all the source, too many changes to keep it around, we'll
see what happens next.
Diffstat (limited to 'src/performcmd.cpp')
| -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 | |||
