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
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