]> Creatis software - creaToolsTools.git/blobdiff - Linux/installscript
conflict gdcm and vtk version
[creaToolsTools.git] / Linux / installscript
index 8f9ae93b93e8eb73374a896621139a1eec0687f6..4823c0227badd9a1d5e2d5d58eb9f5605343cb04 100755 (executable)
@@ -23,6 +23,8 @@
 
 #!/bin/bash -e
 
+scriptDirName=$(dirname $(readlink -f $0) )
+
 #########################################################################
 ############     Local Functions  #######################################
 #########################################################################
@@ -347,16 +349,19 @@ if [ `checkVal $command all 3rd 3rd-base` == true ] ; then
 fi
 
 
+
 # vtk
 if [ `checkVal $command all 3rd 3rd-vtk` == true ] ; then
     bigDisplay "INSTALL VTK"
-    bash scripts/ThirdParty-install-VTK.sh
+    source scripts/ThirdParty-install-VTK.sh
+    cd $scriptDirName
 fi
 
 # gdcm
 if [ `checkVal $command all 3rd 3rd-gdcm` == true ] ; then
     bigDisplay "INSTALL $gdcmVersion"
-    bash scripts/ThirdParty-install-gdcm.sh
+    source scripts/ThirdParty-install-gdcm.sh
+    cd $scriptDirName
 fi
 
 # itk