]> git.tdb.fi Git - builder.git/blobdiff - source/action.cpp
Add Id tag to all files
[builder.git] / source / action.cpp
index 7ed0da1efc0b9c0c12d0d199835adbb83fac9228..ebd6b422ba3770c69cc2fec9f99017dfa5cb6a99 100644 (file)
@@ -1,3 +1,10 @@
+/* $Id$
+
+This file is part of builder
+Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
 #include <iomanip>
 #include <iostream>
 #include <sstream>
 
 using namespace std;
 
+/**
+Annouces the action by printing out the package name, tool and target name.
+*/
 void Action::announce(const string &pkg, const string &tool, const string &tgt)
 {
        ostringstream line;
        line<<left;
-       line<<'['<<setw(10)<<pkg<<"] ";
+       line<<'['<<setw(10)<<pkg.substr(0, 10)<<"] ";
        line<<'['<<setw(4)<<tool<<"] ";
        line<<tgt;
        cout<<line.str()<<'\n';