]> Creatis software - creaToolsTools.git/commitdiff
#3455 bug Mac Install
authoreduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Thu, 19 Oct 2023 13:26:51 +0000 (15:26 +0200)
committereduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Thu, 19 Oct 2023 13:26:51 +0000 (15:26 +0200)
Linux/scripts/installmod.sh
Linux/scripts/installmodNomake.sh

index d2f86303835573752b66676553c32555fff9ea05..83f580a72ef8c2be0d8114dbc597f976a6118713 100644 (file)
@@ -40,37 +40,29 @@ cd $3/creatools_bin/$2Bin
 installPrefix=$4
 # We install, now
 
-pwd
 make -j $5 install
 make install
 
 if [ -e $installPrefix/lib64 ]
 then
-   # grouik style patch JPR
-   if [ $2 = "bbtk" ]
-   then
-      echo "export BBTK_DIR=""$""installPrefix/lib64/creatools/$2"   >> $baseLibraryCreatoolsDir/creatools_base_library_config.sh
-   else
-      echo "export $2_DIR=""$""installPrefix/lib64/creatools/$2"     >> $baseLibraryCreatoolsDir/creatools_base_library_config.sh
-      echo "export bb$2_DIR=""$""installPrefix/lib64/creatools/bb$2" >> $baseLibraryCreatoolsDir/creatools_base_library_config.sh      
-   fi
-
+    libTmpName=lib64
 else
    if [ -e $installPrefix/lib ]
    then
-      # grouik style patch JPR
-      if [ $2 = "bbtk" ]
-      then
-         echo "export BBTK_DIR=""$""installPrefix/lib/creatools/$2"   >> $baseLibraryCreatoolsDir/creatools_base_library_config.sh
-      else
-         echo "export $2_DIR=""$""installPrefix/lib/creatools/$2"     >> $baseLibraryCreatoolsDir/creatools_base_library_config.sh
-         echo "export bb$2_DIR=""$""installPrefix/lib/creatools/bb$2" >> $baseLibraryCreatoolsDir/creatools_base_library_config.sh    
-      fi
+        libTmpName=lib
    else
       echo "============================= NEITHER $installPrefix/lib64 NOR $installPrefix/lib EXIST ?!?"
    fi
+fi
 
+# grouik style patch JPR
+if [ $2 = "bbtk" ]
+then
+    echo "export BBTK_DIR=""$""installPrefix/$libTmpName/creatools/$2"   >> $baseLibraryCreatoolsDir/creatools_base_library_config.sh
+else
+    echo "export $2_DIR=""$""installPrefix/$libTmpName/creatools/$2"     >> $baseLibraryCreatoolsDir/creatools_base_library_config.sh
+    echo "export bb$2_DIR=""$""installPrefix/$libTmpName/creatools/bb$2" >> $baseLibraryCreatoolsDir/creatools_base_library_config.sh      
 fi
+
 cd ../..
-pwd
 
index 631e7f7877147caf047a08c1b8335e0aeb15d68b..0d0f46d8903cbb5058e5a2550b8a56ca4a93ef64 100644 (file)
@@ -45,35 +45,22 @@ echo $4
 installPrefix=$4
 # We install, now
 
-pwd
 #make install
 
 if [ -e $installPrefix/lib64 ]
 then
-   # grouik style patch JPR
-   #if [ $2 = "bbtk" ]
-   #then
-   #   echo export BBTK_DIR=$installPrefix/lib64/creatools/$2   >> $baseLibraryCreatoolsDir/creatools_base_library_config.sh
-   #else
-      echo "export $2_DIR=""$""installPrefix/lib64/creatools/$2"     >> $baseLibraryCreatoolsDir/creatools_base_library_config.sh
-      echo "export bb$2_DIR=""$""installPrefix/lib64/creatools/bb$2" >> $baseLibraryCreatoolsDir/creatools_base_library_config.sh      
-   #fi
-fi
-
-if [ -e $installPrefix/lib ]
-then
-   # grouik style patch JPR
-#   if [ $2 = "bbtk" ]
-#   then
-#      echo "export BBTK_DIR=$installPrefix/lib/creatools/$2"   >> $baseLibraryCreatoolsDir/creatools_base_library_config.sh
-#   else
-      echo "export $2_DIR=""$""installPrefix/lib/creatools/$2"     >> $baseLibraryCreatoolsDir/creatools_base_library_config.sh
-      echo "export bb$2_DIR=""$""installPrefix/lib/creatools/bb$2" >> $baseLibraryCreatoolsDir/creatools_base_library_config.sh    
-#   fi
-   
+    libTmpName=lib64
 else
-   echo "============================= NEITHER $installPrefix/lib64 NOR installPrefix/lib EXIST ?!?"
+    if [ -e $installPrefix/lib ]
+    then
+        libTmpName=lib
+    else
+    echo "============================= NEITHER $installPrefix/lib64 NOR installPrefix/lib EXIST ?!?"
+    fi
 fi
+
+echo "export $2_DIR=""$""installPrefix/$libTmpName/creatools/$2"     >> $baseLibraryCreatoolsDir/creatools_base_library_config.sh
+echo "export bb$2_DIR=""$""installPrefix/$libTmpName/creatools/bb$2" >> $baseLibraryCreatoolsDir/creatools_base_library_config.sh      
+
 cd ../..
-pwd