echo "****** WARNING : THIS IS A BRUTE FORCE **UNSAFE** UNINSTALLER ******"
-echo "****** WILL REMOVES ALL FILES AND FOLDERS STARTING WITH bb ******"
+echo "****** WILL REMOVE ALL FILES AND FOLDERS STARTING WITH bb ******"
TMP=$(which bbtk-uninstall.sh|rev)
TMP2=$(echo ${TMP#*/}|rev)
rm -Rf ${PREFIX}/lib/libbb*
rm -Rf ${PREFIX}/include/bb*
rm -Rf ${PREFIX}/share/bbtk
+echo "DONE !"
fi
#-----------------------------------------------------------------------------
FILE(GLOB BBTK_HEADERS "*.h")
INSTALL(FILES ${BBTK_HEADERS} DESTINATION include/bbtk)
-INSTALL(TARGETS bbtk DESTINATION bin)
+IF(UNIX)
+ INSTALL(TARGETS bbtk DESTINATION lib)
+ELSE(UNIX)
+ INSTALL(TARGETS bbtk DESTINATION bin)
+ENDIF(UNIX)
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
Program: bbtk
Module: $RCSfile: bbtkConfigurationFile.cxx,v $
Language: C++
- Date: $Date: 2008/02/22 17:36:42 $
- Version: $Revision: 1.11 $
+ Date: $Date: 2008/03/03 08:06:36 $
+ Version: $Revision: 1.12 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See doc/license.txt or
/// Constructor
ConfigurationFile::ConfigurationFile()
{
+
// file separator
#if defined(_WIN32)
mFile_separator = "\\";
bbtkMessage("Config",1," ==> prefix : '"<<mInstall_path<<"'"<<std::endl);
bbtkMessage("Config",1," ==> doc : '"<<mDoc_path<<"'"<<std::endl);
bbtkMessage("Config",1," ==> bbs : '"<<mBbs_path<<"'"<<std::endl);
- // bbtkMessage("Config",1," ==> rsc : '"<<mRsc_path<<"'"<<std::endl);
bbtkMessage("Config",1," ==> data : '"<<mData_path<<"'"<<std::endl);
// always add "." (current working directory) at the begining
mBbs_paths.push_back(".");
// add system bbs path
+ mBbs_paths.push_back(mBbs_path);
+ // add toolsbbtk/appli
+ std::string toolsappli_rel_path(mFile_separator);
+ toolsappli_rel_path += "toolsbbtk" + mFile_separator + "appli";
+ mBbs_paths.push_back(mBbs_path + toolsappli_rel_path);
#ifdef WIN32
-//EED for windows BUILD tree
- mBbs_paths.push_back(mInstall_path + mFile_separator + ".." + mFile_separator + mBbs_rel_path);
+ //EED for windows BUILD tree
+ std::string winbbspath = mInstall_path + mFile_separator + ".." + mFile_separator + mBbs_rel_path;
+ mBbs_paths.push_back(winbbspath);
+ // add toolsbbtk/appli
+ mBbs_paths.push_back(winbbspath + toolsappli_rel_path);
#endif
- mBbs_paths.push_back(mBbs_path);
+
// always add "." (current working directory) at the begining
mPackage_paths.push_back(".");
Module: $RCSfile: bbtkFactory.cxx,v $
Language: C++
-Date: $Date: 2008/02/21 09:37:23 $
-Version: $Revision: 1.23 $
+Date: $Date: 2008/03/03 08:06:36 $
+Version: $Revision: 1.24 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
- void Factory::LoadPackage( const std::string& name,
- bool use_configuration_file)
+ void Factory::LoadPackage( const std::string& name )
{
// Note : in the following :
// name : the user supplied name
bbtkDebugMessageInc("Kernel",7,"Factory::LoadPackage(\""<<name<<"\")"<<std::endl);
bbtkMessage("Debug",1,"Factory::LoadPackage(\""<<name<<"\")"<<std::endl);
- bbtkMessage("Debug",1,"use_configuration_file ["
- << use_configuration_file << "]" << std::endl);
std::vector<std::string> package_paths;
std::string libname; // full path library name
Program: bbtk
Module: $RCSfile: bbtkFactory.h,v $
Language: C++
- Date: $Date: 2008/02/14 13:44:25 $
- Version: $Revision: 1.7 $
+ Date: $Date: 2008/03/03 08:06:36 $
+ Version: $Revision: 1.8 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See doc/license.txt or
Factory();
~Factory();
- void LoadPackage( const std::string& name,
- bool use_configuration_file = true );
+ void LoadPackage( const std::string& name );
void UnLoadPackage( const std::string& name );
void PrintPackages(bool details = true, bool adaptors = false) const;
void HelpPackage(const std::string& name, bool adaptors = false) const;
}
}
- inline void LoadPackage( const std::string& name,
- bool use_configuration_file = true)
+ inline void LoadPackage( const std::string& name )
{
- GetGlobalFactory()->LoadPackage(name,use_configuration_file);
+ GetGlobalFactory()->LoadPackage(name);
}
inline void UnLoadPackage( const std::string& name )
Program: bbtk
Module: $RCSfile: bbtkInterpreter.cxx,v $ $
Language: C++
- Date: $Date: 2008/02/21 07:30:20 $
- Version: $Revision: 1.36 $
+ Date: $Date: 2008/03/03 08:06:36 $
+ Version: $Revision: 1.37 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
/**
*
*/
- void Interpreter::InterpretFile( const std::string& filename,
- bool use_configuration_file)
+ void Interpreter::InterpretFile( const std::string& filename )
{
bbtkDebugMessageInc("Interpreter",9,"Interpreter::InterpretFile(\""<<filename<<"\")"<<std::endl);
try
{
- SwitchToFile(filename, use_configuration_file);
+ SwitchToFile(filename);
bool insideComment = false; // for multiline comment
while (mFile.size()>0)
{
case cInclude :
if (mCommandLine)
{
- InterpretFile(words[1], true ); // true : better pass use_config_file
+ InterpretFile(words[1]);
}
else
{
- SwitchToFile(words[1], true ); // true : better pass use_config_file
+ SwitchToFile(words[1]);
}
// if 'source' was given
if (words.size()==3)
break;
case cLoad:
- LoadPackage(words[1], true ); // true : better pass use_config_file
+ LoadPackage(words[1]);
break;
case cUnload:
// ===================================================================================
- void Interpreter::SwitchToFile( const std::string& name,
- bool use_configuration_file )
+ void Interpreter::SwitchToFile( const std::string& name )
{
// Note : in the following :
// name : the user supplied name
std::string pkgname; // e.g. <scriptname>.bbs
std::vector<std::string> Filenames;
- if (use_configuration_file)
- {
- // The following is *NOT* a debug time message :
- // It's a user intended message.
- // Please don't remove it.
- bbtkMessage("Interpreter",1,
- "look for : [" << name
- << "] (use_configuration_file == TRUE)" << std::endl);
- script_paths = ConfigurationFile::GetInstance().Get_bbs_paths();
- }
+ // The following is *NOT* a debug time message :
+ // It's a user intended message.
+ // Please don't remove it.
+ bbtkMessage("Interpreter",1,
+ "look for : [" << name
+ << "]" << std::endl);
+ script_paths = ConfigurationFile::GetInstance().Get_bbs_paths();
+
std::string upath;
pkgname = Utilities::ExtractScriptName(name,upath);
Program: bbtk
Module: $RCSfile: bbtkInterpreter.h,v $ $
Language: C++
- Date: $Date: 2008/02/12 12:55:16 $
- Version: $Revision: 1.11 $
+ Date: $Date: 2008/03/03 08:06:36 $
+ Version: $Revision: 1.12 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
void SetDialogMode(DialogModeType t) { mExecuter->SetDialogMode(t); }
/// Runs the interpretation of a file
- void InterpretFile( const std::string& filename,
- bool use_configuration_file=true);
+ void InterpretFile( const std::string& filename);
/// Interprets a line (either from a file or typed interactively)
void InterpretLine( const std::string& line, bool &insideComment );
CommandInfoType& info );
/// Switch to the interpretation of a file
- void SwitchToFile( const std::string& filename,
- bool use_configuration_file=true);
+ void SwitchToFile( const std::string& filename );
/// Closes the currently open file
void CloseCurrentFile();
Program: bbtk
Module: $RCSfile: bbtkWxConsole.h,v $
Language: C++
- Date: $Date: 2008/02/12 12:55:16 $
- Version: $Revision: 1.3 $
+ Date: $Date: 2008/03/03 08:06:36 $
+ Version: $Revision: 1.4 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
void SetDialogMode(Interpreter::DialogModeType t) { mInterpreter->SetDialogMode(t); }
/// Runs the interpretation of a file
- void InterpretFile( const std::string& filename, bool use_configuration_file = true)
- { mInterpreter->InterpretFile(filename,use_configuration_file); }
+ void InterpretFile( const std::string& filename)
+ { mInterpreter->InterpretFile(filename); }
void OnMenuQuit(wxCommandEvent& event);
void OnMenuAbout(wxCommandEvent& event);