+*/
+
+ std::string bin_path = ConfigurationFile::GetInstance().Get_bin_path();
+ std::string doc_path = ConfigurationFile::GetInstance().Get_doc_path();
+ std::string bbdoc_path = doc_path+"/bbdoc";
+ std::string make_index_path = "\"" + bbdoc_path+"/make-index.bbs\"";
+
+ std::string strcommand0 = "cd "+bbdoc_path+" && mkdir tmp && cd tmp";
+
+ std::string strcommand1 = "cd "+bbdoc_path+"/tmp";
+ std::string strcommand2 = "\""+bin_path+"/bbi\" -n "+make_index_path;
+#ifdef WIN32
+ std::string strcommand3 = "move index*.html ../.";
+#else
+ std::string strcommand3 = "mv index*.html ../.";
+#endif
+
+ std::string strcommand = strcommand1 +" && "+
+ strcommand2 +" && "+
+ strcommand3;
+
+ std::cout << "system: " << strcommand0 << std::endl;
+ std::cout << "system: " << strcommand << std::endl;
+
+ system ( strcommand0.c_str() );
+ system ( strcommand.c_str() );