X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fanalyzer.cpp;h=f694edb96198494aadcceeb258950417bb708c90;hb=4d0d003b022943d8a0e39ba19078bab8d32d8857;hp=e2b25bd6260bfdce4ede32c615dad72a6079b10b;hpb=74266a6e650f019063cdcd1c9a7bd26d8f99041b;p=builder.git diff --git a/source/analyzer.cpp b/source/analyzer.cpp index e2b25bd..f694edb 100644 --- a/source/analyzer.cpp +++ b/source/analyzer.cpp @@ -1,7 +1,15 @@ +/* $Id$ + +This file is part of builder +Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + #include #include #include #include +#include #include "analyzer.h" #include "builder.h" #include "install.h" @@ -63,7 +71,7 @@ void Analyzer::build_depend_table(Target &tgt, unsigned depth) if(full_paths) fn=tgt.get_name(); else - fn=Path::Path(tgt.get_name())[-1]; + fn=basename(tgt.get_name()); row.push_back(string(depth*2, ' ')+fn); const Package *pkg=tgt.get_package();