]> Creatis software - bbtk.git/commitdiff
bbStudio : make index works.
authorguigues <guigues>
Mon, 6 Oct 2008 10:30:10 +0000 (10:30 +0000)
committerguigues <guigues>
Mon, 6 Oct 2008 10:30:10 +0000 (10:30 +0000)
kernel/src/bbtkWxGUIScriptingInterface.cxx

index 6ae91c60d69d82515e4242e3d43b9556439807d8..5678db43262b431f5e35ea8c09003f4996e12234 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkWxGUIScriptingInterface.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/10/02 13:21:11 $
-  Version:   $Revision: 1.20 $
+  Date:      $Date: 2008/10/06 10:30:10 $
+  Version:   $Revision: 1.21 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -434,6 +434,7 @@ namespace bbtk
   //================================================================
   void WxGUIScriptingInterface::OnMenuCreateIndex(wxCommandEvent& WXUNUSED(event))
   {
+         /*
     std::string doc_path = ConfigurationFile::GetInstance().Get_doc_path();
     std::string filepath = doc_path+"/bbdoc/make-index.bbs";
 
@@ -448,7 +449,15 @@ namespace bbtk
     I->InterpretLine( "index "+doc_path+"/bbdoc/index-package.html Packages");
     I->InterpretLine( "index "+doc_path+"/bbdoc/index-category.html Categories");
     I->InterpretLine( "index "+doc_path+"/bbdoc/index-adaptors.html Adaptors");
-    
+    */
+       std::string command("cd \"");
+       command += ConfigurationFile::GetInstance().Get_doc_path();
+       command += ConfigurationFile::GetInstance().Get_file_separator() + "bbdoc\" && \"";
+       command += ConfigurationFile::GetInstance().Get_bin_path();
+    command += ConfigurationFile::GetInstance().Get_file_separator() + "bbi\" -N -q .";
+    command += ConfigurationFile::GetInstance().Get_file_separator() + "make-index.bbs"; 
+       bbtkMessage("debug",1,"Executing system command '"<<command<<"'"<<std::endl);
+       system(command.c_str());
   }
   //================================================================