+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+@echo off
-rem @echo off
set creatoolsGeneration=%1
set docgeneration=%2
-set cvsUser=%3
-set installPrefix=%4
-set buildtype=%5
-
-
-set creasource=crea
-set bbtksource=bbtk
-set creamaracassource=creaMaracasVisu
-set creaenvironmentsource=creaEnvironment
-set creabrukersource=creaBruker
-set creaimagesource=creaImageIO
-set creacontourssource=creaContours
-set crearigidregistrationssource=creaRigidRegistration
-set bbtkgeditorsource=bbtkGEditor
-set creatoolssource=creaTools
-set creaminitoolssource=creaMiniTools
-
-set currentdir=%~dp0
-
+set installPrefix=%3
+set buildtype=%4
+set forcex86=%5
-call %currentdir%\cleangeneral.bat %creatoolsGeneration% %installPrefix%
+set scriptsFolder=%cd%
+set logFolder=%creatoolsGeneration%\installLog
-call %currentdir%\cvscheckout.bat %creasource% %cvsUser% %creatoolsGeneration%
-call %currentdir%\cvscheckout.bat %bbtksource% %cvsUser% %creatoolsGeneration%
-call %currentdir%\cvscheckout.bat %creamaracassource% %cvsUser% %creatoolsGeneration%
-call %currentdir%\cvscheckout.bat %creaenvironmentsource% %cvsUser% %creatoolsGeneration%
-call %currentdir%\cvscheckout.bat %creabrukersource% %cvsUser% %creatoolsGeneration%
-call %currentdir%\cvscheckout.bat %creaimagesource% %cvsUser% %creatoolsGeneration%
-call %currentdir%\cvscheckout.bat %creacontourssource% %cvsUser% %creatoolsGeneration%
-call %currentdir%\cvscheckout.bat %crearigidregistrationssource% %cvsUser% %creatoolsGeneration%
-call %currentdir%\cvscheckout.bat %bbtkgeditorsource% %cvsUser% %creatoolsGeneration%
-call %currentdir%\cvscheckout.bat %creatoolssource% %cvsUser% %creatoolsGeneration%
-call %currentdir%\cvscheckout.bat %creaminitoolssource% %cvsUser% %creatoolsGeneration%
+rmdir %logFolder% /s /q
+mkdir %logFolder%
-rem CREA
-call %currentdir%\cleanmod.bat %creasource% %creatoolsGeneration%
-call %currentdir%\cmakemod.bat %creasource% %installPrefix% %creatoolsGeneration%
-call %currentdir%\creaVariables.bat %creatoolsGeneration% %creasource% %docgeneration%
-call %currentdir%\compilemod.bat %buildtype% %creasource% %creatoolsGeneration%
-call %currentdir%\ctestmod.bat %creasource% %creatoolsGeneration%
-set creadll=%creatoolsGeneration%\creatools_bin\%creasource%Bin\%buildtype%
-set PATH=%creadll%;%PATH%
+echo call configure variables
+call %scriptsFolder%\base\configureVariables.bat
-rem BBTK
-call %currentdir%\cleanmod.bat %bbtksource% %creatoolsGeneration%
-call %currentdir%\cmakemod.bat %bbtksource% %installPrefix% %creatoolsGeneration%
-call %currentdir%\bbtkVariables.bat %creatoolsGeneration% %bbtksource% %docgeneration%
-call %currentdir%\compilemod.bat %buildtype% %bbtksource% %creatoolsGeneration%
-call %currentdir%\ctestmod.bat %bbtksource% %creatoolsGeneration%
-set bbtkdll=%creatoolsGeneration%\creatools_bin\%bbtksource%Bin\%buildtype%
-set PATH=%bbtkdll%;%PATH%
+REM goto skypeEED
-rem creaMaracasVisu
-call %currentdir%\cleanmod.bat %creamaracassource% %creatoolsGeneration%
-call %currentdir%\cmakemod.bat %creamaracassource% %installPrefix% %creatoolsGeneration%
-call %currentdir%\creaMaracasVariables.bat %creatoolsGeneration% %creamaracassource% %docgeneration%
-call %currentdir%\compilemod.bat %buildtype% %creamaracassource% %creatoolsGeneration%
-call %currentdir%\ctestmod.bat %creamaracassource% %creatoolsGeneration%
-set creamaracasdll=%creatoolsGeneration%\creatools_bin\%creamaracassource%Bin\%buildtype%
-set PATH=%creamaracasdll%;%PATH%
+echo call Download Sources
+start /B /wait %scriptsFolder%\base\downloadSources.bat
-rem creaEnvironment
-call %currentdir%\cleanmod.bat %creaenvironmentsource% %creatoolsGeneration%
-call %currentdir%\cmakemod.bat %creaenvironmentsource% %installPrefix% %creatoolsGeneration%
-call %currentdir%\creaenvironmentVariables.bat %creatoolsGeneration% %creaenvironmentsource% %docgeneration%
-call %currentdir%\compilemod.bat %buildtype% %creaenvironmentsource% %creatoolsGeneration%
-call %currentdir%\ctestmod.bat %creaenvironmentsource% %creatoolsGeneration%
-set creaenvironmentdll=%creatoolsGeneration%\creatools_bin\%creaenvironmentsource%Bin\%buildtype%
-set PATH=%creaenvironmentdll%;%PATH%
+echo call compile crea
+start /B /wait %scriptsFolder%\crea\creaInstall.bat
+echo call compile bbtk
+start /B /wait %scriptsFolder%\bbtk\bbtkInstall.bat
+echo call compile creaMaracasVisu
+start /B /wait %scriptsFolder%\creaMaracasVisu\creaMaracasVisuInstall.bat
+echo call compile creaEnvironment
+start /B /wait %scriptsFolder%\creaEnvironment\creaEnvironmentInstall.bat
+echo call compile creaBruker
+start /B /wait %scriptsFolder%\creaBruker\creaBrukerInstall.bat
+echo call compile creaImageIO
+start /B /wait %scriptsFolder%\creaImageIO\creaImageIOInstall.bat
+echo call compile creaContours
+start /B /wait %scriptsFolder%\creaContours\creaContoursInstall.bat
+echo call compile creaRigidRegistration
+start /B /wait %scriptsFolder%\creaRigidRegistration\creaRigidRInstall.bat
+echo call compile bbtkGEditor
+start /B /wait %scriptsFolder%\bbtkGEditor\bbtkGEditorInstall.bat
+echo call compile creaMinitools
+start /B /wait %scriptsFolder%\creaTools\creaMinitoolsInstall.bat
-rem creaBruker
-call %currentdir%\cleanmod.bat %creabrukersource% %creatoolsGeneration%
-call %currentdir%\cmakemod.bat %creabrukersource% %installPrefix% %creatoolsGeneration%
-call %currentdir%\creaBrukerVariables.bat %creatoolsGeneration% %creabrukersource% %docgeneration%
-call %currentdir%\compilemod.bat %buildtype% %creabrukersource% %creatoolsGeneration%
-call %currentdir%\ctestmod.bat %creabrukersource% %creatoolsGeneration%
-set creabrukerdll=%creatoolsGeneration%\creatools_bin\%creabrukersource%Bin\%buildtype%
-set PATH=%creabrukerdll%;%PATH%
-rem creaImageIO
-call %currentdir%\cleanmod.bat %creaimagesource% %creatoolsGeneration%
-call %currentdir%\cmakemod.bat %creaimagesource% %installPrefix% %creatoolsGeneration%
-call %currentdir%\creaImageIOVariables.bat %creatoolsGeneration% %creaimagesource% %docgeneration%
-call %currentdir%\compilemod.bat %buildtype% %creaimagesource% %creatoolsGeneration%
-call %currentdir%\ctestmod.bat %creaimagesource% %creatoolsGeneration%
-set creaimagedll=%creatoolsGeneration%\creatools_bin\%creaimagesource%Bin\%buildtype%
-set PATH=%creaimagedll%;%PATH%
-rem creaContours
-call %currentdir%\cleanmod.bat %creacontourssource% %creatoolsGeneration%
-call %currentdir%\cmakemod.bat %creacontourssource% %installPrefix% %creatoolsGeneration%
-call %currentdir%\creaContoursVariables.bat %creatoolsGeneration% %creacontourssource% %docgeneration%
-call %currentdir%\compilemod.bat %buildtype% %creacontourssource% %creatoolsGeneration%
-call %currentdir%\ctestmod.bat %creacontourssource% %creatoolsGeneration%
-set creacontourdll=%creatoolsGeneration%\creatools_bin\%creacontourssource%Bin\%buildtype%
-rem set PATH=%creacontoursdll%;%PATH%
+REM :skypeEED
-rem creaRigidRegistration
-call %currentdir%\cleanmod.bat %crearigidregistrationssource% %creatoolsGeneration%
-call %currentdir%\cmakemod.bat %crearigidregistrationssource% %installPrefix% %creatoolsGeneration%
-call %currentdir%\creaRigidRegistrationVariables.bat %creatoolsGeneration% %crearigidregistrationssource% %docgeneration%
-call %currentdir%\compilemod.bat %buildtype% %crearigidregistrationssource% %creatoolsGeneration%
-call %currentdir%\ctestmod.bat %crearigidregistrationssource% %creatoolsGeneration%
-set crearigidregistrationdll=%creatoolsGeneration%\creatools_bin\%crearigidregistrationssource%Bin\%buildtype%
-rem set PATH=%crearigidregistrationdll%;%PATH%
+echo THIS HAS TO BE THE LAST STEP...
+echo call compile creaTools
+start /B /wait %scriptsFolder%\creaTools\creaToolsInstall.bat
+echo To see the log files of this install please go to %LogFolder%
-rem bbtkGEditor
-call %currentdir%\cleanmod.bat %bbtkgeditorsource% %creatoolsGeneration%
-call %currentdir%\cmakemod.bat %bbtkgeditorsource% %installPrefix% %creatoolsGeneration%
-call %currentdir%\bbtkGEditorVariables.bat %creatoolsGeneration% %bbtkgeditorsource% %docgeneration%
-call %currentdir%\compilemod.bat %buildtype% %bbtkgeditorsource% %creatoolsGeneration%
-call %currentdir%\ctestmod.bat %bbtkgeditorsource% %creatoolsGeneration%
-set bbtkgeditordll=%creatoolsGeneration%\creatools_bin\%bbtkgeditorsource%Bin\%buildtype%
-rem set PATH=%bbtkgeditordll%;%PATH%
-
-rem creaMiniTools
-call %currentdir%\cleanmod.bat %creaminitoolssource% %creatoolsGeneration%
-call %currentdir%\cmakemod.bat %creaminitoolssource% %installPrefix% %creatoolsGeneration%
-call %currentdir%\creaMiniToolsVariables.bat %creatoolsGeneration% %creaminitoolssource% %docgeneration%
-call %currentdir%\compilemod.bat %buildtype% %creaminitoolssource% %creatoolsGeneration%
-call %currentdir%\ctestmod.bat %creaminitoolssource% %creatoolsGeneration%
-set creaminitoolsdll=%creatoolsGeneration%\creatools_bin\%creaminitoolssource%Bin\%buildtype%
-rem set PATH=%creaminitoolsdll%;%PATH%
-
-rem THIS HAS TO BE THE LAST STEP...
-
-rem creaTools
-call %currentdir%\cleanmod.bat %creatoolssource% %creatoolsGeneration%
-call %currentdir%\cmakemod.bat %creatoolssource% %installPrefix% %creatoolsGeneration%
-call %currentdir%\creaToolsVariables.bat %creatoolsGeneration% %creatoolssource% %docgeneration%
-call %currentdir%\compilemodCreaTools.bat %buildtype% %creatoolssource% %creatoolsGeneration%
-rem remcall ctestmod.bat %creatoolssource% %creatoolsGeneration%
-set creatoolsdll=%creatoolsGeneration%\creatools_bin\%creatoolssource%Bin\%buildtype%
-rem set PATH=%creatoolssdll%;%PATH%
-
-REM
-REM
-REM ...FIN...END... :)
-REM
-REM
-pause
-rem shutdown /s
-exit /b
+exit /B