From: admin Date: Mon, 28 Jul 2003 14:41:39 +0000 (+0000) Subject: Initial version X-Git-Tag: v_1_2c~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c07d89d6be310d0e521f389b0c6660cf7bf98cfc;p=tools%2Finstall.git Initial version --- diff --git a/config_files/Python-2.2.1.sh b/config_files/Python-2.2.1.sh new file mode 100755 index 0000000..9a3a86e --- /dev/null +++ b/config_files/Python-2.2.1.sh @@ -0,0 +1,110 @@ +#!/bin/sh + +check_version() +{ +if [ -z "$PYTHONHOME" ]; then + return 1 +fi +isPython=`which python 2>/dev/null` +if [ -n isPython ]; then + ver=`python -V 2>&1` + if [ "$ver" = "Python 2.2.1" ] ; then + return 0 + fi +fi +return 1 +} + +print_env() +{ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <&1`" == "Python 2.2.1" ] ; then + tmp="\${PYTHONHOME}/lib/python2.2 ${pythonhome}/lib/python2.2 \${PYTHONPATH} ${PYTHONPATH}"; + pythonpath=`sort_path ${tmp}` + cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < Makefile_new +mv -f Makefile_new Makefile +GCC=`which gcc` +cat >> ${PRODUCT_DIR}/MAKE.LOG <