then
echo "Use it as :"
echo "sh All.sh <nameOfTheGenerationDirectory> <BooleanForDocGeneration> <userNameForCVS> <installPrefix> <buildType>"
- echo "with 'installPrefix' : /usr/local or <directory where you want to generate>/creatools_install
+echo "with 'installPrefix' : /usr/local or <directory where you want to generate>/creatools_install"
echo " "
echo "ex : sh All.sh /tmp/gendir OFF jpr /tmp/gendir/creatools_install Debug"
exit 0
if [ $# != 5 ]
then
echo "sh All.sh <nameOfTheGenerationDirectory> <BooleanForDocGeneration> <userNameForCVS> <installPrefix> <buildType>"
-echo "with 'installPrefix' : /usr/local or <directory where you want to generate>/creatools_install
+echo "with 'installPrefix' : /usr/local or <directory where you want to generate>/creatools_install"
echo " "
echo "ex : sh All.sh /tmp/gendir OFF jpr /tmp/gendir/creatools_install Debug"
exit 0
sh $scriptDir/cvscheckout.sh $creatoolssource $generationdir $cvsUserName
fi
+
cd $scriptDir
# CREA
creadll=$generationdir/creatools_bin/creaBin
LD_LIBRARY_PATH=$creadll:LD_LIBRARY_$PATH
-
-
# the following stupid test is used at debug time; Please don't remove!
#if [ true = false ]
# creatoolsdll=$generationdir/creatools_bin/creatoolsBin
# LD_LIBRARY_PATH=$creatoolssdll:$LD_LIBRARY_PATH
+
+
+CREATOOLS_INSTALL_DIR=$installPrefix
+sudo rm $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
+
+# 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
+
+# - 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
+
+
# shutdown /s
# exit /b