echo " Install Third Party Libraries :....1 (as root)"
echo " Get the 'CreaTools' source files :.2 (CVS : as user!)"
echo " Compile the CreaTools :..........3 "
- echo " Install the CreaTools :..........4 (as root)"
- echo " Uninstall the CreaTools :..........5 (as root)"
+# Install creatools as user (no longer as root) // JPR 2/5/2011
+# echo " Install the CreaTools :..........4 (as root)"
+# echo " Uninstall the CreaTools :..........5 (as root)"
+ echo " Install the CreaTools :..........4 "
+ echo " Uninstall the CreaTools :..........5 "
echo
echo " Help ..............................7 Help about this menu"
echo " Show some Environment Variables ...8"
then
echo WARNING
echo
- if [ ! -f /etc/bashrc ]
- then
- export ETC_BASHRC="/etc/bash.bashrc"
- else
- export ETC_BASHRC="/etc/bashrc"
- fi
+# Install creatools as user (no longer as root) // JPR 2/5/2011
+ #if [ ! -f /etc/bashrc ]
+ #then
+ # export ETC_BASHRC="/etc/bash.bashrc"
+ #else
+ # export ETC_BASHRC="/etc/bashrc"
+ #fi
+ export ETC_BASHRC=$HOME/.bashrc
echo "the curently used Third Party libraries are NOT in $installPrefixThird but in :"
grep "installPrefixThird=" $ETC_BASHRC
echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$installPrefix/lib/creatools >> $installPrefix/share/creatools_base_library_config.sh
echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$installPrefix/lib64/creatools >> $installPrefix/share/creatools_base_library_config.sh
- if [ ! -f /etc/bashrc ]
- then
- export ETC_BASHRC="/etc/bash.bashrc"
- else
- export ETC_BASHRC="/etc/bashrc"
- fi
+# Install creatools as user (no longer as root) // JPR 2/5/2011
+# if [ ! -f /etc/bashrc ]
+# then
+# export ETC_BASHRC="/etc/bash.bashrc"
+# else
+# export ETC_BASHRC="/etc/bashrc"
+# fi
+export ETC_BASHRC=$HOME/.bashrc
# - remove line 'bash $installPrefix/creatools_install/share/creatools_base_librariy_config.sh' if any
sed -i -e '/.*creatools_base_library_config.*/ d' $ETC_BASHRC
#!/bin/bash
echo "in uninstall"
- if [ $UID = 0 ]
- then
+# if [ $UID = 0 ]
+# then
# Set all local variables
source $PWD/scripts/CreaTools-configure.sh
rm -f creatools_base_library_config.sh
-if [ ! -f /etc/bashrc ]
-then
- export ETC_BASHRC="/etc/bash.bashrc"
-else
- export ETC_BASHRC="/etc/bashrc"
-fi
- echo "revert $ETC_BASHRC to previous value"
+ #if [ ! -f /etc/bashrc ]
+ #then
+ # export ETC_BASHRC="/etc/bash.bashrc"
+ #else
+ # export ETC_BASHRC="/etc/bashrc"
+ #fi
+ # echo "revert $ETC_BASHRC to previous value"
# revert /etc/bashrc to previous value
# - remove line 'bash $installPrefix/creatools_install/share/creatools_base_party_libraries_config.sh'
- sed -i -e '/.*creatools_base_library_config.*/ d' $ETC_BASHRC
+ #sed -i -e '/.*creatools_base_library_config.*/ d' $ETC_BASHRC
+
+echo "revert $HOME/.bashrc to previous value"
+sed -i -e '/.*creatools_base_library_config.*/ d' $HOME/.bashrc
-else
- echo
- echo "..ERROR.."
- echo "==================================================="
- echo "REMEMBER !"
- echo ""
- echo "YOU NEED TO RUN THIS ONE AS root"
- echo "==================================================="
- echo
- echo
-fi
+#else
+# echo
+# echo "..ERROR.."
+# echo "==================================================="
+# echo "REMEMBER !"
+# echo ""
+# echo "YOU NEED TO RUN THIS ONE AS root"
+# echo "==================================================="
+# echo
+# echo
+#fi
# modify .bashrc
# - remove line 'bash $installPrefixThird/share/creatools_third_party_library_config.sh' if any (with accurate value for ???)
-if [ ! -f /etc/bashrc ]
-then
- export ETC_BASHRC="/etc/bash.bashrc"
-else
- export ETC_BASHRC="/etc/bashrc"
-fi
+# Install creatools as user (no longer as root) // JPR 2/5/2011
+#if [ ! -f /etc/bashrc ]
+#then
+# export ETC_BASHRC="/etc/bash.bashrc"
+#else
+# export ETC_BASHRC="/etc/bashrc"
+#fi
+
+export ETC_BASHRC=$HOME/.bashrc
+
sed -i -e '/.*installPrefixThird*/ d' $ETC_BASHRC
sed -i -e '/.*creatools_third_party_library_config.*/ d' $ETC_BASHRC