export ETC_BASHRC=~/.bashrc
-
-
-
function usage {
echo "installscript [options] command"
echo "creatools configure/compile/install script"
# install packaged dependencies as root
if [ `checkVal $command all 3rd 3rd-base` == true ] ; then
bigDisplay "INSTALL PACKAGES DEPENDENCIES"
- if [ "`whoami`" == root ] ; then
- echo ThirdParty-install-Base-Stuff
- bash scripts/ThirdParty-install-Base-Stuff.sh
- else
- # must log as root
- echo "Please enter the root passwd to add necessary packages:";
- su -c "bash scripts/ThirdParty-install-Base-Stuff.sh"
- fi
+ source scripts/CreaTools-configure.sh
+ cd scripts
+ source ThirdParty-install-Base-Stuff.sh $OperatingSystem
+ cd ..
bash scripts/ThirdParty-install.sh
fi
-
-
# vtk
if [ `checkVal $command all 3rd 3rd-vtk` == true ] ; then
bigDisplay "INSTALL VTK"
# compile creatools
if [ `checkVal $command all creatools creatools-cmp` == true ] ; then
bigDisplay "COMPILE CREATOOLS"
+echo "EED installscript compile creatools"
+echo $ETC_BASHRC
source $ETC_BASHRC
bash -x scripts/CreaTools-compile.sh