- std::string command;
- command = ConfigurationFile::GetInstance().Get_bin_path();
- command += ConfigurationFile::GetInstance().Get_file_separator();
- command += "bbRegeneratePackageDoc " + pname + " -q && ";
- command += ConfigurationFile::GetInstance().Get_bin_path();
- command += ConfigurationFile::GetInstance().Get_file_separator();
- command += "bbRegenerateBoxesLists -q ";
- bbtkMessage("debug",1,"Executing system command '"<<command<<"'"<<std::endl);
-
- if ( ! system ( command.c_str() ) )
- {
- std::string mess("Package '");
- mess += pname + "' successfully plugged in";
- wxMessageBox(std2wx(mess),_T("Plug package"),
- wxOK | wxICON_INFORMATION);
- }
- else
- {
- wxString err(_T("An error occured while running '"));
- err += bbtk::std2wx(command) + _T("'");
- wxMessageBox(err,_T("Regenerate all"),wxOK | wxICON_ERROR);
- }
- }