+/* $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';