From: Diego Caceres Date: Wed, 23 Nov 2011 09:41:59 +0000 (+0000) Subject: DFCH: Adding template for run automatically all the scripts X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=3afceddce806ddbeb6870383aac236cac7082ff2;p=creaToolsTools.git DFCH: Adding template for run automatically all the scripts --- diff --git a/Install_ThirdParty/install_generate_thirdparty.bat_TEMPLATE b/Install_ThirdParty/install_generate_thirdparty.bat_TEMPLATE new file mode 100644 index 0000000..60e8098 --- /dev/null +++ b/Install_ThirdParty/install_generate_thirdparty.bat_TEMPLATE @@ -0,0 +1,15 @@ +set thirdpartyGeneration= +set buildType= + +cd scripts +call install_thirdparty_all.bat %thirdpartyGeneration% %buildType% >> install_generate_thirdparty.log 2>&1 + +call move_thirdparty_dlls.bat %thirdpartyGeneration% >> install_generate_thirdparty.log 2>&1 + +call move_thirdparty_libraries.bat %thirdpartyGeneration% >> install_generate_thirdparty.log 2>&1 + +call install_thirdparty_dlls_cmake.bat %thirdpartyGeneration% >> install_generate_thirdparty.log 2>&1 + +call install_thirdparty_libraries_cmake.bat %thirdpartyGeneration% >> install_generate_thirdparty.log 2>&1 + +cd .. \ No newline at end of file diff --git a/Install_ThirdParty/scripts/install_thirdparty_all.bat b/Install_ThirdParty/scripts/install_thirdparty_all.bat index ff08b83..cb2ca2f 100644 --- a/Install_ThirdParty/scripts/install_thirdparty_all.bat +++ b/Install_ThirdParty/scripts/install_thirdparty_all.bat @@ -1,5 +1,8 @@ @echo off echo ----------------------------------- +echo ------Installing Libraries--------- +echo ----------------------------------- +echo ----------------------------------- echo ------Asking Architecture---------- echo ----------------------------------- if %PROCESSOR_ARCHITECTURE%==x86 ( @@ -310,4 +313,7 @@ rename tth_exe tth del tth_exe.zip echo ------End TTH Installation--------- cd c:\ +echo ----------------------------------- +echo ---End of Installing Libraries----- +echo ----------------------------------- @echo on \ No newline at end of file diff --git a/Install_ThirdParty/scripts/install_thirdparty_dlls_cmake.bat b/Install_ThirdParty/scripts/install_thirdparty_dlls_cmake.bat index d0e1f5b..a0ed684 100644 --- a/Install_ThirdParty/scripts/install_thirdparty_dlls_cmake.bat +++ b/Install_ThirdParty/scripts/install_thirdparty_dlls_cmake.bat @@ -1,5 +1,9 @@ @echo off echo ----------------------------------- +echo -----Generating Installers of------ +echo -------creaThirdPartyDlls---------- +echo ----------------------------------- +echo ----------------------------------- echo ------Asking Architecture---------- echo ----------------------------------- if %PROCESSOR_ARCHITECTURE%==x86 ( @@ -31,7 +35,10 @@ if not exist %vcvarsall% ( call %vcvarsall% +rmdir %binpath% /s /q + mkdir %binpath% + cd %binpath% cmake -G"Visual Studio 10" -H%sourcepath% -B%binpath% diff --git a/Install_ThirdParty/scripts/install_thirdparty_libraries_cmake.bat b/Install_ThirdParty/scripts/install_thirdparty_libraries_cmake.bat index 87ff828..886da92 100644 --- a/Install_ThirdParty/scripts/install_thirdparty_libraries_cmake.bat +++ b/Install_ThirdParty/scripts/install_thirdparty_libraries_cmake.bat @@ -1,5 +1,9 @@ @echo off echo ----------------------------------- +echo -----Generating Installers of------ +echo -----creaThirdPartyLibraries------- +echo ----------------------------------- +echo ----------------------------------- echo ------Asking Architecture---------- echo ----------------------------------- if %PROCESSOR_ARCHITECTURE%==x86 ( @@ -31,6 +35,8 @@ if not exist %vcvarsall% ( call %vcvarsall% +rmdir %binpath% /s /q + mkdir %binpath% cd %binpath% diff --git a/Install_ThirdParty/scripts/move_thirdparty_dlls.bat b/Install_ThirdParty/scripts/move_thirdparty_dlls.bat index 36034f7..a3f9140 100644 --- a/Install_ThirdParty/scripts/move_thirdparty_dlls.bat +++ b/Install_ThirdParty/scripts/move_thirdparty_dlls.bat @@ -1,5 +1,8 @@ @echo off echo ----------------------------------- +echo ----------Moving Dlls-------------- +echo ----------------------------------- +echo ----------------------------------- echo ---Setting Enviroment Variables---- echo ----------------------------------- @@ -30,6 +33,8 @@ set ITKINSTALLDIR=%installpath%\%itk% set VTKINSTALLDIR=%installpath%\%vtk% set GDCMINSTALLDIR=%installpath%\%gdcm% +rmdir %creaThirdPartydlls% /s /q + mkdir %creaThirdPartydlls% echo ----------------------------------- @@ -156,4 +161,7 @@ echo -------------GDCM------------------ echo ----------------------------------- copy /V /Y %GDCMINSTALLDIR%\bin\*.exe %creaThirdPartydlls% -copy /V /Y %GDCMINSTALLDIR%\bin\*.dll %creaThirdPartydlls% \ No newline at end of file +copy /V /Y %GDCMINSTALLDIR%\bin\*.dll %creaThirdPartydlls% +echo ----------------------------------- +echo ------End of Moving Dlls----------- +echo ----------------------------------- \ No newline at end of file diff --git a/Install_ThirdParty/scripts/move_thirdparty_libraries.bat b/Install_ThirdParty/scripts/move_thirdparty_libraries.bat index 14344bb..a6988f9 100644 --- a/Install_ThirdParty/scripts/move_thirdparty_libraries.bat +++ b/Install_ThirdParty/scripts/move_thirdparty_libraries.bat @@ -1,5 +1,8 @@ @echo off echo ----------------------------------- +echo --------Moving Libraries----------- +echo ----------------------------------- +echo ----------------------------------- echo ------Asking Architecture---------- echo ----------------------------------- if %PROCESSOR_ARCHITECTURE%==x86 ( @@ -83,6 +86,8 @@ echo XERCESDIR=%XERCESDIR% echo ITKSRCDIR=%ITKSRCDIR% echo VTKSRCDIR=%VTKSRCDIR% +rmdir %creaThirdPartyLibraries% /s /q + mkdir %creaThirdPartyLibraries% echo ----------------------------------- @@ -351,4 +356,8 @@ echo -------------MiKText--------------- echo ----------------------------------- mkdir %creaThirdPartyLibraries%\%miktexAux% -XCOPY %miktex%\* %creaThirdPartyLibraries%\%miktexAux% /s /i \ No newline at end of file +XCOPY %miktex%\* %creaThirdPartyLibraries%\%miktexAux% /s /i + +echo ----------------------------------- +echo -----End of Moving Libraries------- +echo ----------------------------------- \ No newline at end of file