From 73d53b0962cb19a6d2a7686de658a5540ab07017 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 31 Jul 2006 22:50:47 +0000 Subject: It almost builds, we need to get rid of duplicate list entries and actually store the commands somewhere so the target handler can decide if they need to be run. --- src/performcmd.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/performcmd.cpp (limited to 'src/performcmd.cpp') 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 @@ +#include "performcmd.h" +#include "builder.h" + +PerformCmd::PerformCmd( const char *sCmd, const char *sTarget ) : + sCommand( sCmd ), + sTarget( sTarget ) +{ +} + +PerformCmd::~PerformCmd() +{ +} + +void PerformCmd::execute( class Builder &bld ) +{ + printf("%s\n", sCommand.getString() ); + system( sCommand.getString() ); +} + -- cgit v1.2.3