From c07d89d6be310d0e521f389b0c6660cf7bf98cfc Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 28 Jul 2003 14:41:39 +0000 Subject: [PATCH] Initial version --- config_files/Python-2.2.1.sh | 110 +++++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100755 config_files/Python-2.2.1.sh 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 <