aboutsummaryrefslogtreecommitdiff
path: root/src/performcmd.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-08-01 03:09:58 +0000
committerMike Buland <eichlan@xagasoft.com>2006-08-01 03:09:58 +0000
commit935bc7d5223883d87f58a6798f4a0ade7df95afc (patch)
tree83119cd6b407c6e17c21774f1f0cea940d9c948c /src/performcmd.cpp
parent73d53b0962cb19a6d2a7686de658a5540ab07017 (diff)
downloadbuild-935bc7d5223883d87f58a6798f4a0ade7df95afc.tar.gz
build-935bc7d5223883d87f58a6798f4a0ade7df95afc.tar.bz2
build-935bc7d5223883d87f58a6798f4a0ade7df95afc.tar.xz
build-935bc7d5223883d87f58a6798f4a0ade7df95afc.zip
It actually builds, now it just needs dependancy tracking, and maybe auto-target
check triggering.
Diffstat (limited to '')
-rw-r--r--src/performcmd.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/performcmd.cpp b/src/performcmd.cpp
index 21ba737..724f42b 100644
--- a/src/performcmd.cpp
+++ b/src/performcmd.cpp
@@ -2,8 +2,8 @@
2#include "builder.h" 2#include "builder.h"
3 3
4PerformCmd::PerformCmd( const char *sCmd, const char *sTarget ) : 4PerformCmd::PerformCmd( const char *sCmd, const char *sTarget ) :
5 Perform( sTarget ),
5 sCommand( sCmd ), 6 sCommand( sCmd ),
6 sTarget( sTarget )
7{ 7{
8} 8}
9 9
@@ -14,6 +14,11 @@ PerformCmd::~PerformCmd()
14void PerformCmd::execute( class Builder &bld ) 14void PerformCmd::execute( class Builder &bld )
15{ 15{
16 printf("%s\n", sCommand.getString() ); 16 printf("%s\n", sCommand.getString() );
17 system( sCommand.getString() ); 17 int ret;
18 if( (ret = system( sCommand.getString() )) != 0 )
19 {
20 printf("Error code: %d\n", WEXITSTATUS(ret) );
21 exit( WEXITSTATUS(ret) );
22 }
18} 23}
19 24