3)
echo "========================== 3"
source scripts/CreaTools-configure.sh
+
bash scripts/CreaTools-compile.sh
# To allow (*very* aware) user to patch code, later
- if [ -e $loginUserName $generationdir/creatools_source ]
+ if [ ! -e $generationdir/creatools_source ]
then
echo "You probabely made a mistake : "
echo "Directory $loginUserName $generationdir/creatools_source not found"
echo "Fix the mistake!"
read a
else
- chown -R $loginUserName $generationdir/creatools_source
+ chown -R $loginUserName $generationdir/creatools_source
chgrp -R $loginGroupName $generationdir/creatools_source
# Too much time consuming
#chown -R $loginUserName $generationdir/creatools_source
;;
4)
- if [ $UID != 0 ]
+ if [ $UID != 0 ]
then
echo
echo "..ERROR.."
fi
echo "========================= 4"
bash scripts/CreaTools-install.sh
- echo
- echo "==> Hit any key to close current window"
- read a
- kill $PPID
+ if [ $UID != 0 ]
+ then
+ echo "You HAVE to leave current window to continue!"
+ else
+ echo "==> Hit any key to close current window"
+ fi
+ echo "You HAVE to leave current window to continue!"
+ read a
+ kill $PPID
;;
5)
clear
echo "==================================="
more README.txt
- echo
+ echo
echo "==> Hit any key to go on"
read a
;;
echo $start_point
echo "------"
+if [ ! -f $installPrefixThird/share/creatools_third_party_library_config.sh ]
+then
+ echo missing $installPrefixThird/share/creatools_third_party_library_config.sh
+ echo
+ echo "..ERROR.."
+ echo "==================================================="
+ echo "REMEMBER !"
+ echo ""
+ echo "YOU NEED TO RUN 'Install Third Party Libraries' (1) FIRST !"
+ echo "==================================================="
+ echo
+ echo "Hit any key to continue"
+ read a
+ exit 0
+fi
+
if [ ! -e $generationdir/creatools_source ]
then
echo missing $generationdir/creatools_source
exit 0
fi
+
+if [ ! -f $installPrefixThird/share/creatools_third_party_library_config.sh ]
+then
+ echo missing $installPrefixThird/share/creatools_third_party_library_config.sh
+ echo
+ echo "..ERROR.."
+ echo "==================================================="
+ echo "REMEMBER !"
+ echo ""
+ echo "YOU NEED TO RUN 'Load' (2) FIRST !"
+ echo "==================================================="
+ echo
+ echo
+ exit 0
+fi
+
cd $generationdir
if [ -e creatools_bin ]
then
sed -i -e '/.*creatools_base_library_config.*/ 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'
+
echo source $installPrefix/share/creatools_base_library_config.sh >> $ETC_BASHRC
else
echo