ConfigurationFile::GetInstance().AddPackagePathsAndWrite( path );
std::string command;
- command = ConfigurationFile::GetInstance().Get_bin_path();
+#if defined(WIN32)
+ command = "\"";
+#endif
+ command += ConfigurationFile::GetInstance().Get_bin_path();
command += ConfigurationFile::GetInstance().Get_file_separator();
- command += "bbRegeneratePackageDoc " + pname + " -q && ";
+ command += "bbRegeneratePackageDoc";
+#if defined(WIN32)
+ command += "\"";
+#endif
+ command += " " + pname + " -q";
+
+if ( system ( command.c_str() ) )
+ {
+ std::cout << "An error occured while running '"
+ << command << "'" << std::endl;
+ return 1;
+ }
+
+
+
+ command = "";
+#if defined(WIN32)
+ command = "\"";
+#endif
command += ConfigurationFile::GetInstance().Get_bin_path();
command += ConfigurationFile::GetInstance().Get_file_separator();
- command += "bbRegenerateBoxesLists -q ";
+ command += "bbRegenerateBoxesLists";
+#if defined(WIN32)
+ command += "\"";
+#endif
+ command += " -q";
if ( ! system ( command.c_str() ) )
{