- wxString name = wxGetTextFromUser(_T("Enter package name (* for all)"),
- _T("Regenerate package doc"),
- _T(""));
- if (name.IsEmpty()) return;
- std::string pack = bbtk::wx2std(name);
-
- std::string command("cd \"");
- command += ConfigurationFile::GetInstance().Get_bin_path();
- command += "\" && bbRegeneratePackageDoc " + pack;
- bbtkMessage("debug",1,"Executing system command '"<<command<<"'"<<std::endl);
-
- if ( ! system ( command.c_str() ) )
- {
- wxMessageBox(_T("Done !"),_T("Regenerate package '")+name+_T("' doc"),
- wxOK | wxICON_INFORMATION);
- }
- else
- {
- wxString err(_T("An error occured while running '"));
- err += bbtk::std2wx(command) + _T("'");
- wxMessageBox(err,_T("Regenerate package doc"),wxOK | wxICON_ERROR);
- }
+ wxString name = wxGetTextFromUser(_T("Enter package name (-a for all)"),
+ _T("Regenerate package doc"),
+ _T(""));
+ if (name.IsEmpty()) return;
+ std::string pack = bbtk::wx2std(name);
+
+ std::string command;
+ command = ConfigurationFile::GetInstance().Get_bin_path();
+ command += ConfigurationFile::GetInstance().Get_file_separator();
+ command += "bbRegeneratePackageDoc " + pack;
+ bbtkMessage("debug",1,"Executing system command '"<<command<<"'"<<std::endl);
+
+ if ( ! system ( command.c_str() ) )
+ {
+ wxMessageBox(_T("Done !"),_T("Regenerate package '")+name+_T("' doc"),
+ wxOK | wxICON_INFORMATION);
+ }
+ else
+ {
+ wxString err(_T("An error occured while running '"));
+ err += bbtk::std2wx(command) + _T("'");
+ wxMessageBox(err,_T("Regenerate package doc"),wxOK | wxICON_ERROR);
+ }