#########################################################################
############ Local Functions #######################################
#########################################################################
#########################################################################
############ Local Functions #######################################
#########################################################################
echo " Install Prefix for CreaTools : $installPrefix"
echo " Boolean for Doc Generation : $docgeneration"
echo " Where do you want to get source files from : $sourcesFrom"
echo " Install Prefix for CreaTools : $installPrefix"
echo " Boolean for Doc Generation : $docgeneration"
echo " Where do you want to get source files from : $sourcesFrom"
echo " Login User Name : $loginUserName"
echo " Login Group Name : $loginGroupName"
echo " Build type : $buildType"
echo " Login User Name : $loginUserName"
echo " Login Group Name : $loginGroupName"
echo " Build type : $buildType"
echo " 3rd : Get, Compile, Install all 3rd party library "
echo " 3rd-base : Install basic tools (cmake, doxygen...)"
echo " 3rd-vtk : Get, Compile, Install vtk"
echo " 3rd : Get, Compile, Install all 3rd party library "
echo " 3rd-base : Install basic tools (cmake, doxygen...)"
echo " 3rd-vtk : Get, Compile, Install vtk"
echo " 3rd-gdcm : Get, Compile, Install gdcm"
echo " 3rd-wx : Get, Compile, Install wx widget (for Mac Users)"
echo " "
echo " 3rd-gdcm : Get, Compile, Install gdcm"
echo " 3rd-wx : Get, Compile, Install wx widget (for Mac Users)"
echo " "
echo " creatools : Get Compile and Install the CreaTools"
echo " creatools-get : Get the CreaTools"
echo " creatools-cmp : Compile the CreaTools"
echo " creatools : Get Compile and Install the CreaTools"
echo " creatools-get : Get the CreaTools"
echo " creatools-cmp : Compile the CreaTools"
echo " printconfig : print the configuration"
echo " help : print help"
echo " env : print some environnement variables"
echo " printconfig : print the configuration"
echo " help : print help"
echo " env : print some environnement variables"
echo " -gdir <dir> : generation directory (default $generationdir)"
echo " -instprefix <dir> : creatools install prefix"
echo " -instprefix3 <dir> : 3rd party library install prefix"
echo " -gdir <dir> : generation directory (default $generationdir)"
echo " -instprefix <dir> : creatools install prefix"
echo " -instprefix3 <dir> : 3rd party library install prefix"
- echo " -cvs <cvsusername> : get creatools from cvs (CREATIS user only)"
+ echo " -html : get creatools from HTML"
+ echo " -git : get creatools from git (CREATIS user only)"
+ echo " -git-read-only : get creatools from git (anonymously, no write access)"
echo " -build : build type Release, RelWithDebug or Debug (default RelWithDebug)"
echo ""
echo " experimental configure options (use at your own risk!!):"
echo " -build : build type Release, RelWithDebug or Debug (default RelWithDebug)"
echo ""
echo " experimental configure options (use at your own risk!!):"
-instprefix) installPrefix=$2; shift 2;;
-instprefix3) installPrefixThird=$2; shift 2;;
-doc) docgeneration=ON; shift 1;;
-instprefix) installPrefix=$2; shift 2;;
-instprefix3) installPrefixThird=$2; shift 2;;
-doc) docgeneration=ON; shift 1;;
-gdcm2) gdcmVersion=GDCM2; shift 1;;
-itk4) ITKVersion=ITK4; shift 1;;
-build) buildType=$2; shift 2;;
-gdcm2) gdcmVersion=GDCM2; shift 1;;
-itk4) ITKVersion=ITK4; shift 1;;
-build) buildType=$2; shift 2;;
echo "installPrefixThird=$installPrefixThird" >> $configureFile
echo "docgeneration=$docgeneration" >> $configureFile
echo "sourcesFrom=$sourcesFrom" >> $configureFile
echo "installPrefixThird=$installPrefixThird" >> $configureFile
echo "docgeneration=$docgeneration" >> $configureFile
echo "sourcesFrom=$sourcesFrom" >> $configureFile
echo "loginUserName=$loginUserName" >> $configureFile
echo "loginGroupName=$loginGroupName" >> $configureFile
echo "buildType=$buildType" >> $configureFile
echo "loginUserName=$loginUserName" >> $configureFile
echo "loginGroupName=$loginGroupName" >> $configureFile
echo "buildType=$buildType" >> $configureFile
+################################################################################## creatools
+# download creatools
+if [ `checkVal $command all creatools creatools-get` == true ] ; then
+ bigDisplay "DOWNLOAD CREATOOLS"
+ bash scripts/CreaTools-load.sh
+fi
################################################################################## 3rd library
# install packaged dependencies as root
if [ `checkVal $command all 3rd 3rd-base` == true ] ; then
bigDisplay "INSTALL PACKAGES DEPENDENCIES"
if [ "`whoami`" == root ] ; then
################################################################################## 3rd library
# install packaged dependencies as root
if [ `checkVal $command all 3rd 3rd-base` == true ] ; then
bigDisplay "INSTALL PACKAGES DEPENDENCIES"
if [ "`whoami`" == root ] ; then
if [ `checkVal $command all 3rd 3rd-vtk 3rd-itk 3rd-gdcm 3rd-wx ` == true ] ; then
bigDisplay "FINALIZE 3RD PARTY LIBRARY INSTALLATION"
bash scripts/ThirdParty-install-Finalize.sh
if [ `checkVal $command all 3rd 3rd-vtk 3rd-itk 3rd-gdcm 3rd-wx ` == true ] ; then
bigDisplay "FINALIZE 3RD PARTY LIBRARY INSTALLATION"
bash scripts/ThirdParty-install-Finalize.sh
if [ `checkVal $command 3rd 3rd-vtk 3rd-itk 3rd-gdcm 3rd-wx ` == true ] ; then
bigDisplay "Third Party Install Done"
bigDisplay "Please copy paste the following command or open a new terminal: source ~/.bashrc"
if [ `checkVal $command 3rd 3rd-vtk 3rd-itk 3rd-gdcm 3rd-wx ` == true ] ; then
bigDisplay "Third Party Install Done"
bigDisplay "Please copy paste the following command or open a new terminal: source ~/.bashrc"
if [ `checkVal $command uninstall` == true ] ; then
bigDisplay "UNINSTALL CREATOOLS"
bash scripts/CreaTools-uninstall.sh
if [ `checkVal $command uninstall` == true ] ; then
bigDisplay "UNINSTALL CREATOOLS"
bash scripts/CreaTools-uninstall.sh