From: admin Date: Thu, 11 Mar 2004 07:58:05 +0000 (+0000) Subject: Initial version X-Git-Tag: v_1_2c~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=16fdef17cf6132d3bc3c22452a90acfdc7b3d0f0;p=tools%2Finstall.git Initial version --- diff --git a/config_files/SWIG-1.3.17.sh b/config_files/SWIG-1.3.17.sh new file mode 100755 index 0000000..4b6a366 --- /dev/null +++ b/config_files/SWIG-1.3.17.sh @@ -0,0 +1,98 @@ +#!/bin/sh + +check_version(){ +if [ -n "`which swig 2>/dev/null`" ]; then + ver=`swig -version 2>&1` + ver=`echo $ver | awk '{print $3}' | grep "1.3.17"` + if [ -n "$ver" ] ; then + return 0; + fi +fi +return 1; +} + +print_env() +{ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <&1` + ver=`echo $ver | awk '{print $3}' | grep "1.3.17"` + if [ -n "$ver" ] ; then + tmp="\${SWIG_ROOT}/bin ${swig_root}/bin \${PATH} ${PATH}"; + path=`sort_path ${tmp}` + tmp="\${SWIG_ROOT}/lib ${swig_root}/lib \${LD_LIBRARY_PATH} ${LD_LIBRARY_PATH}"; + ld_library_path=`sort_path ${tmp}` + cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <> ${PRODUCT_DIR}/MAKE.LOG <