2 #include <bbtkInterpreter.h>
3 #include <bbtkConfigurationFile.h>
5 //==========================================================================
6 int main(int argc, char **argv)
11 bbtk::MessageManager::SetMessageLevel("max",0);
12 else if (argv[1][1]=='v')
13 bbtk::MessageManager::SetMessageLevel("all",9);
16 std::cout << "usage : bbRegenerateBoxesLists [-q|-v] (quiet or verbose)" << std::endl;
23 bbtk::Interpreter::Pointer I = bbtk::Interpreter::New();
24 I->SetCommandLine(true);
28 std::string doc_path = bbtk::ConfigurationFile::GetInstance().Get_doc_path();
29 doc_path += bbtk::ConfigurationFile::GetInstance().Get_file_separator();
31 doc_path += bbtk::ConfigurationFile::GetInstance().Get_file_separator();
33 I->InterpretLine( "exec freeze_no_error");
34 I->InterpretLine( "include *");
35 I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Initials,doc_path + "index-alpha.html");
36 I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Packages,doc_path + "index-package.html");
37 I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Categories,doc_path + "index-category.html");
38 I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Adaptors,doc_path + "index-adaptors.html");
41 catch (bbtk::Exception e)
43 std::cout << "* ERROR : "<<e.GetErrorMessage()<<std::endl;
48 //==========================================================================