From 925f6bb9fb551e75f71265601b5cb72aff52c685 Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 7 Feb 2005 10:34:14 +0000 Subject: [PATCH] Modify installation scripts: setting TCLLIBPATH enviroment variable where necessary --- config_files/VTK-4.2.2.sh | 2 ++ config_files/common.sh | 6 +++--- config_files/tcltk8.3.3.sh | 2 ++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/config_files/VTK-4.2.2.sh b/config_files/VTK-4.2.2.sh index f502ba0..23d077a 100755 --- a/config_files/VTK-4.2.2.sh +++ b/config_files/VTK-4.2.2.sh @@ -22,6 +22,7 @@ export VTKHOME=\${INSTALL_ROOT}/${PRODUCT} export PATH=\${VTKHOME}/bin:\${PATH} export LD_LIBRARY_PATH=\${VTKHOME}/lib/vtk:\${LD_LIBRARY_PATH} export PYTHONPATH=\${VTKHOME}/lib/vtk:\${VTKHOME}/lib/python2.2/site-packages/vtk_python:\${PYTHONPATH} +export TCLLIBPATH="\${VTKHOME}/lib/vtk/tcl \${TCLLIBPATH}" ## EOF (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR}) @@ -44,6 +45,7 @@ export VTKHOME=${VTKHOME} export PATH=${path} export LD_LIBRARY_PATH=${ld_library_path} export PYTHONPATH=${python_path} +export TCLLIBPATH="\${VTKHOME}/lib/vtk/tcl \${TCLLIBPATH}" ## EOF make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" diff --git a/config_files/common.sh b/config_files/common.sh index c268b4f..ea63d95 100755 --- a/config_files/common.sh +++ b/config_files/common.sh @@ -115,16 +115,16 @@ alias setenva 'set a="\!:1" ; set b="'\!:2'":\`printenv \$a\` ; set b=\`cleandup alias setenvp 'set a="\!:1" ; set b="'\!:2'":\`printenv \$a\` ; set b=\`cleandup \$b\` ; setenv \$a \$b ; unset a, b' EOF ### !!! writing salome.csh file !!! -> set inital variables -pre_vars="PATH LD_LIBRARY_PATH LD_RUN_PATH PYTHONPATH" +pre_vars="PATH LD_LIBRARY_PATH LD_RUN_PATH PYTHONPATH TCLLIBPATH" for i in $pre_vars ; do cat >> ${install_work}/$CSHRC < dump products environment files, changing 'export' by 'setenv(a|b)' where necessary +### !!! writing salome.(c)sh files !!! -> dump products environment files, changing 'export' by 'setenv(a|p)' where necessary product_sequence="$2" for i in $product_sequence ; do sed -e 's%^export\([[:blank:]]*\)PATH=\$[{]\?PATH[}]\?:\(.*\)%setenva\1PATH \2%g' -e 's%^export\([[:blank:]]*\)PATH=\(.*\):\$[{]\?PATH[}]\?%setenvp\1PATH \2%g' ${install_work}/env_${i}.sh > ${INSTALL_WORK}/_tmp1 2>/dev/null diff --git a/config_files/tcltk8.3.3.sh b/config_files/tcltk8.3.3.sh index 4735689..7542309 100755 --- a/config_files/tcltk8.3.3.sh +++ b/config_files/tcltk8.3.3.sh @@ -48,6 +48,7 @@ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <