cd $scriptDir
bash installmod.sh $buildType $creasource $generationdir
bash installmod.sh $buildType $bbtksource $generationdir
- bash installmod.sh $buildType $creamaracassource $generationdir
+ bash installmod.sh $buildType $creamaracassource $generationdir
bash installmod.sh $buildType $creaenvironmentsource $generationdir
bash installmod.sh $buildType $creabrukersource $generationdir
bash installmod.sh $buildType $creaimagesource $generationdir
export ETC_BASHRC="/etc/bashrc"
fi
- # - remove line 'bash $installPrefix/creatools_install/share/creatools_base_libraries_config.sh' if any
+ # - remove line 'bash $installPrefix/creatools_install/share/creatools_base_librariy_config.sh' if any
sed -i -e '/.*creatools_base_library_config.*/ d' $ETC_BASHRC
- sed -i -e '/installPrefix=*/ d' $ETC_BASHRC
+ sed -i -e '/installPrefixtmp*/ d' $ETC_BASHRC
# modify /etc/bashrc (we cannot modify .bashrc, since we switched as root)
- # - add line 'bash $installPrefix/creatools_install/share/creatools_base_libraries_config.sh'
+ # - add line 'bash $installPrefix/creatools_install/share/creatools_base_librariy_config.sh'
+
+echo installPrefixtmp=$installPrefix >> $ETC_BASHRC
+echo '[ -f "$installPrefixtmp/share/creatools_base_library_config.sh" ] && source $installPrefixsharetmp/creatools_base_library_config.sh' >> $ETC_BASHRC
+
- echo source $installPrefix/share/creatools_base_library_config.sh >> $ETC_BASHRC
- echo installPrefix=$installPrefix >> $ETC_BASHRC
else
echo
echo "..ERROR.."