#include <fstream>
+#include <iostream>
#include <msp/progress.h>
#include <msp/strconv.h>
#include <msp/strutils.h>
getopt.add_option(GetOpt::Option('f', "file", GetOpt::REQUIRED, "Build"));
getopt.add_option(GetOpt::Option("chrome", GetOpt::NONE));
getopt.add_option(GetOpt::Option("full-paths", GetOpt::NONE));
+ getopt.add_option(GetOpt::Option('A', "conf-all", GetOpt::NONE));
int index=getopt(argc, argv);
verbose+=getopt['v'].count();
}
dry_run=getopt['n'];
-
jobs=max(strtol(getopt['j'].arg()), 1L);
-
chrome=getopt["chrome"];
+ conf_all=getopt['A'];
+ build_file=getopt['f'].arg();
+ build_all=getopt['B'];
if(getopt['C'])
chdir(getopt['C'].arg().c_str());
- build_file=getopt['f'].arg();
-
for(int i=index; i<argc; ++i)
{
string v(argv[i]);
default_pkg=packages.begin()->second;
- bool conf_all=cmdline_options.count("conf_all");
while(!new_pkgs.empty())
{
Package *pkg=new_pkgs.front();
if(i->second->get_buildable())
cout<<'*';
unsigned count=0;
+ unsigned ood_count=0;
for(TargetMap::iterator j=targets.begin(); j!=targets.end(); ++j)
if(j->second->get_package()==i->second)
+ {
++count;
- cout<<" ("<<count<<" targets)\n";
+ if(j->second->get_rebuild())
+ ++ood_count;
+ }
+ if(count)
+ {
+ cout<<" ("<<count<<" targets";
+ if(ood_count)
+ cout<<", "<<ood_count<<" out-of-date";
+ cout<<")\n";
+ }
}
}