- std::string doc_path = bbtk::ConfigurationFile::GetInstance().Get_doc_path();
- doc_path += bbtk::ConfigurationFile::GetInstance().Get_file_separator();
- doc_path += "bbdoc";
- doc_path += bbtk::ConfigurationFile::GetInstance().Get_file_separator();
-
- bbtk::Interpreter::Pointer I = bbtk::Interpreter::New();
- I->SetCommandLine(true);
- I->SetThrow(false);
- I->InterpretLine( "exec freeze");
- I->InterpretLine( "include "+pack);
- if (pack != "*")
- {
- I->InterpretLine( "include "+pack+"-appli");
- RegenerateDoc(I->GetExecuter()->GetFactory()->GetPackage(pack),doc_path);
- }
- else
- {
- bbtk::Factory::PackageMapType::const_iterator i;
- for (i = I->GetExecuter()->GetFactory()->GetPackageMap().begin();
- i != I->GetExecuter()->GetFactory()->GetPackageMap().end();
- ++i)
- {
- RegenerateDoc(i->second,doc_path);
- }
- }
- }
- catch (bbtk::Exception e)
- {
- std::cout << "* ERROR : "<<e.GetErrorMessage()<<std::endl;
- return 1;
- }
- return 0;