installPrefix=$4
buildType=$5
+
scriptDir=$PWD
echo scriptDir
echo $scriptDir
sudo rm -rf creatools_install/lib64/crea*
sudo rm -rf creatools_install/lib64/libbb*
sudo rm -rf creatools_install/lib64/libcrea*
-
fi
#if [ true = false ]
# LD_LIBRARY_PATH=$creatoolssdll:$LD_LIBRARY_PATH
-CREATOOLS_INSTALL_DIR=$installPrefix
-sudo rm $CREATOOLS_INSTALL_DIR/share/creatools_base_library_config.sh
-sudo touch $CREATOOLS_INSTALL_DIR/share/creatools_base_library_config.sh
-sudo chmod 666 $CREATOOLS_INSTALL_DIR/share/creatools_base_library_config.sh
-sudo echo export PATH=$PATH:$CREATOOLS_INSTALL_DIR/bin >> $CREATOOLS_INSTALL_DIR/share/creatools_base_library_config.sh
-sudo echo export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$THIRDPARTY_INSTALL_DIR/lib/creatools >> $CREATOOLS_INSTALL_DIR/share/creatools_base_library_config.sh
+#######################################
+
+sudo touch $installPrefix/share/creatools_base_library_config.sh
+sudo chmod 666 $installPrefix/share/creatools_base_library_config.sh
+
+
+sudo echo export PATH='$'PATH:$installPrefix/bin >> $installPrefix/share/creatools_base_library_config.sh
+sudo echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$installPrefix/lib/creatools >> $installPrefix/share/creatools_base_library_config.sh
+sudo echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$installPrefix/lib64/creatools >> $installPrefix/share/creatools_base_library_config.sh
# modify .bashrc
# - remove line 'sh $installPrefix/creatools_install/share/creatools_base_party_libraries_config.sh' if any (with accurate value for ???)
-sed -i -e 's/.*creatools_base_libraries_config.*/ /g' ~/.bashrc
+sed -i -e '/.*creatools_base_library_config.*/ d' ~/.bashrc
# - add line 'sh $installPrefix/creatools_install/share/creatools_base_libraries_config.sh' (with accurate value for ???)
-echo sh $CREATOOLS_INSTALL_DIR/share/creatools_base_libraries_config.sh >> ~/.bashrc
+echo source $installPrefix/share/creatools_base_library_config.sh >> ~/.bashrc
# shutdown /s