]> git.tdb.fi Git - builder.git/blobdiff - source/action.cpp
Builder can build itself now.
[builder.git] / source / action.cpp
diff --git a/source/action.cpp b/source/action.cpp
new file mode 100644 (file)
index 0000000..7ed0da1
--- /dev/null
@@ -0,0 +1,16 @@
+#include <iomanip>
+#include <iostream>
+#include <sstream>
+#include "action.h"
+
+using namespace std;
+
+void Action::announce(const string &pkg, const string &tool, const string &tgt)
+{
+       ostringstream line;
+       line<<left;
+       line<<'['<<setw(10)<<pkg<<"] ";
+       line<<'['<<setw(4)<<tool<<"] ";
+       line<<tgt;
+       cout<<line.str()<<'\n';
+}