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);
27 std::string doc_path = bbtk::ConfigurationFile::GetInstance().Get_doc_path();
28 doc_path += bbtk::ConfigurationFile::GetInstance().Get_file_separator();
30 doc_path += bbtk::ConfigurationFile::GetInstance().Get_file_separator();
32 I->InterpretLine( "exec freeze_no_error");
33 I->InterpretLine( "include *");
34 I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Initials, doc_path + "index-alpha.html");
35 I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Packages, doc_path + "index-package.html");
36 I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Categories, doc_path + "index-category.html");
37 I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Adaptors, doc_path + "index-adaptors.html");
40 catch (bbtk::Exception e)
42 std::cout << "* ERROR : "<<e.GetErrorMessage()<<std::endl;
47 //==========================================================================