]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
SALOME 6.5.0 preparation: update script for sip (4.10.2)
authorvsr <vsr@opencascade.com>
Tue, 3 Apr 2012 19:22:42 +0000 (19:22 +0000)
committervsr <vsr@opencascade.com>
Tue, 3 Apr 2012 19:22:42 +0000 (19:22 +0000)
13 files changed:
config_CentOS_5.5_64bit.xml
config_Debian_4.0.xml
config_Debian_4.0_64bit.xml
config_Debian_5.0_64bit.xml
config_Debian_6.0_64bit.xml
config_Mandriva_2008.0.xml
config_Mandriva_2008.0_64bit.xml
config_Mandriva_2010.0.xml
config_Mandriva_2010.0_64bit.xml
config_Red_Hat_Enterprise_WS_4_64bit.xml
config_Scientific_SL_5.1_64bit.xml
config_files/sip-4.10.2.sh [deleted file]
config_files/sip.sh [new file with mode: 0755]

index 8f16f471d7cc6fafc986e51a7f58a23b0c84f9ff..abd0923d9b872ea0d64500ba6b9e68ca6aa58630 100755 (executable)
                     version="4.10.2" 
                    disable="false"
                    installdiskspace="308,1450,2476"
-                   script="sip-4.10.2.sh"/>
+                   script="sip.sh"/>
     </product>
     <product name="PyQt"
             type="prerequisite"
index a1ca3ab1a926dda3d58e0a2fc140e1cd87f34b02..5faafd5a1b09588e2f05311138ed3087f8c09e1c 100755 (executable)
                     version="4.10.2" 
                    disable="false"
                    installdiskspace="308,1450,2476"
-                   script="sip-4.10.2.sh"/>
+                   script="sip.sh"/>
     </product>
     <product name="PyQt"
             type="prerequisite"
index f509ecfdbe2f9e2d373672861621737fbf2cc72f..fd6c374b5d3c7252f7b5f614dffde72d55ab581b 100755 (executable)
                     version="4.10.2" 
                    disable="false"
                    installdiskspace="308,1450,2476"
-                   script="sip-4.10.2.sh"/>
+                   script="sip.sh"/>
     </product>
     <product name="PyQt"
             type="prerequisite"
index 0e645c9d42e02d1e333735ef0750cfdf840373df..080a87e31d93f67006ce37daedf646e02ed4f9f5 100755 (executable)
                     version="4.10.2" 
                    disable="false"
                    installdiskspace="308,1450,2476"
-                   script="sip-4.10.2.sh"/>
+                   script="sip.sh"/>
     </product>
     <product name="PyQt"
             type="prerequisite"
index 76d87290cd7b3f42bee25f56e8143a7cdfa7c7cd..f2f6ddb6bb9766b5e2e5d214f35ef81ca821e893 100755 (executable)
                     version="4.10.2" 
                    disable="false"
                    installdiskspace="308,1450,2476"
-                   script="sip-4.10.2.sh"/>
+                   script="sip.sh"/>
     </product>
     <product name="PyQt"
             type="prerequisite"
index 5b40ce92e7307b3d0b4bd35472e204b0bee76b1e..8eff64756844350fce824d40815088187e009caf 100755 (executable)
                     version="4.10.2" 
                    disable="false"
                    installdiskspace="308,1450,2476"
-                   script="sip-4.10.2.sh"/>
+                   script="sip.sh"/>
     </product>
     <product name="PyQt"
             type="prerequisite"
index 4e43ee63eee6ab9b90ff183321d0e6b43c732d5c..6095842ad4a56bbe3f045a25d9c79b81478440f7 100755 (executable)
                     version="4.10.2" 
                    disable="false"
                    installdiskspace="308,1450,2476"
-                   script="sip-4.10.2.sh"/>
+                   script="sip.sh"/>
     </product>
     <product name="PyQt"
             type="prerequisite"
index 488480d0ebeea2e220bbac36d155711fee66ff06..668f70c1680be223a655afb0f147fc2f75476afe 100755 (executable)
                     version="4.10.2" 
                    disable="false"
                    installdiskspace="308,1450,2476"
-                   script="sip-4.10.2.sh"/>
+                   script="sip.sh"/>
     </product>
     <product name="PyQt"
             type="prerequisite"
index 68170151a89123476307fc6c033a9580f598cc32..a910d2747a4c4be5b206da9f4164fb1b91ca13dd 100755 (executable)
                     version="4.10.2" 
                    disable="false"
                    installdiskspace="308,1450,2476"
-                   script="sip-4.10.2.sh"/>
+                   script="sip.sh"/>
     </product>
     <product name="PyQt"
             type="prerequisite"
index f65a4e9efe1cefbc9da1967b3a1f1ccf1dd88ef8..8e05782e07875335791a89530509349a38fedfbc 100755 (executable)
                     version="4.10.2" 
                    disable="false"
                    installdiskspace="308,1450,2476"
-                   script="sip-4.10.2.sh"/>
+                   script="sip.sh"/>
     </product>
     <product name="PyQt"
             type="prerequisite"
index fc15abc09902c7fa9d006bb5272f34f4cf937b6c..c2ec24da44423b269a0fb36397ede91960886c36 100755 (executable)
                     version="4.10.2" 
                    disable="false"
                    installdiskspace="308,1450,2476"
-                   script="sip-4.10.2.sh"/>
+                   script="sip.sh"/>
     </product>
     <product name="PyQt"
             type="prerequisite"
diff --git a/config_files/sip-4.10.2.sh b/config_files/sip-4.10.2.sh
deleted file mode 100755 (executable)
index 200c231..0000000
+++ /dev/null
@@ -1,177 +0,0 @@
-#!/bin/bash -noprofile
-
-####################################################################################
-#  File      : sip-4.10.2.sh
-#  Created   : Thu Dec 18 12:01:00 2002
-#  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
-#  Project   : SALOME
-#  Module    : Installation Wizard
-#  Copyright : 2002-2008 CEA
-#
-#  This script is the part of the SALOME installation procedure.
-#
-####################################################################################
-
-#
-# sip version
-#
-SIP_VERSION=4.10.2
-SIP_XVERSION=`echo ${SIP_VERSION} | awk -F. '{printf("%d",$1*10000+$2*100+$3)}'`
-
-check_version()
-{
-if [ -n "${SIPDIR}" ]; then
-    ver=`${SIPDIR}/bin/sip -V | awk '{print $1}'`
-    maj_ver=`echo $ver | awk -F. '{if(NF>0) print $1; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'`
-    min_ver=`echo $ver | awk -F. '{if(NF>1) print $2; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'`
-    rel_ver=`echo $ver | awk -F. '{if(NF>2) print $3; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'`
-    let ver=$maj_ver*10000+$min_ver*100+$rel_ver
-    if [ $ver -eq ${SIP_XVERSION} ] ; then
-       return 0
-    fi
-fi
-return 1
-}
-
-print_env_bin()
-{
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
-#$DELIM ${PRODUCT_TYPE} $DELIM
-export SIPDIR=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
-export PATH=\${SIPDIR}/bin:\${PATH}
-export PYTHONPATH=\${SIPDIR}/lib/python\${PYTHON_VERSION}/site-packages:\${PYTHONPATH}
-export LD_LIBRARY_PATH=\${SIPDIR}/lib/python\${PYTHON_VERSION}/site-packages:\${LD_LIBRARY_PATH}
-##
-EOF
-(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
-make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
-}
-
-print_env_src()
-{
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
-#$DELIM ${PRODUCT_TYPE}_src $DELIM
-# nothing to do
-##
-EOF
-(test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
-make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
-}
-
-try_preinstalled(){
-try_existing ${PRODUCT_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
-try_existing ${PRODUCT_SRC_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
-return $?
-}
-
-install_source()
-{
-make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
-source ${INSTALL_WORK}/$SHRC
-
-check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${INST_ROOT}
-
-# to generate environment scripts
-try_preinstalled
-}
-
-install_source_and_build()
-{
-# install sources
-install_source
-
-# build sources
-test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
-cd ${PRODUCT_SRC_DIR}
-
-SIP_CONFIGURE_OPTIONS="-b ${PRODUCT_DIR}/bin"
-SIP_CONFIGURE_OPTIONS="${SIP_CONFIGURE_OPTIONS} -d ${PRODUCT_DIR}/lib/python${PYTHON_VERSION}/site-packages"
-SIP_CONFIGURE_OPTIONS="${SIP_CONFIGURE_OPTIONS} -e ${PRODUCT_DIR}/include/python${PYTHON_VERSION}"
-SIP_CONFIGURE_OPTIONS="${SIP_CONFIGURE_OPTIONS} -v ${PRODUCT_DIR}/sip"
-if test `uname -m` = "x86_64" ; then
-    SIP_CONFIGURE_OPTIONS="${SIP_CONFIGURE_OPTIONS} -p linux-g++-64"
-fi
-
-check_job ${PRODUCT_DIR}/CONFIGURE.LOG python ./configure.py ${SIP_CONFIGURE_OPTIONS}
-GCC=`which gcc`
-cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
-used gcc=$GCC
-EOF
-check_job ${PRODUCT_DIR}/MAKE.LOG make
-check_job ${PRODUCT_DIR}/INSTALL.LOG make install
-
-cd ${PRODUCT_DIR};
-
-# remove sources and temporary files after building
-if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
-    test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR}
-fi
-
-# to generate environment scripts
-try_preinstalled
-}
-
-install_binary()
-{
-make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
-source ${INSTALL_WORK}/$SHRC
-
-# create a product directory
-test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
-
-check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR}
-
-SIP_CONFIGURE_OPTIONS="-b ${PRODUCT_DIR}/bin"
-SIP_CONFIGURE_OPTIONS="${SIP_CONFIGURE_OPTIONS} -d ${PRODUCT_DIR}/lib/python${PYTHON_VERSION}/site-packages"
-SIP_CONFIGURE_OPTIONS="${SIP_CONFIGURE_OPTIONS} -e ${PRODUCT_DIR}/include/python${PYTHON_VERSION}"
-SIP_CONFIGURE_OPTIONS="${SIP_CONFIGURE_OPTIONS} -v ${PRODUCT_DIR}/sip"
-if test `uname -m` = "x86_64" ; then
-    SIP_CONFIGURE_OPTIONS="${SIP_CONFIGURE_OPTIONS} -p linux-g++-64"
-fi
-
-# modify sipconfig.py file
-if [ -n "${PYTHONROOT}" ] && [ -n "${QTDIR}" ] ; then
-    cd ${PRODUCT_DIR}/lib/python${PYTHON_VERSION}/site-packages
-    python_version=`python -V 2>&1 | awk '{print $2}' | awk -F. '{printf("0x%02d%02d%02d",$1,$2,$3)}'`
-    qt_version=`grep -e "^#define[[:space:]]\+QT_VERSION[[:space:]]\+" ${QTDIR}/include/Qt/qglobal.h | sed -e 's%^#define[[:space:]\+QT_VERSION[[:space:]]\+\(.*\)$%\1%g'`
-    sed -e "s%\('default_bin_dir':[[:space:]]*\).*%\1'${PYTHONROOT}/bin',%g" \
-       -e "s%\('default_mod_dir':[[:space:]]*\).*%\1'${PYTHONROOT}/lib/python${PYTHON_VERSION}/site-packages',%g" \
-       -e "s%\('default_sip_dir':[[:space:]]*\).*%\1'${PRODUCT_DIR}/sip',%g" \
-       -e "s%\('sip_bin':[[:space:]]*\).*%\1'${PRODUCT_DIR}/bin/sip',%g" \
-       -e "s%\('sip_inc_dir':[[:space:]]*\).*%\1'${PRODUCT_DIR}/include/python${PYTHON_VERSION}',%g" \
-       -e "s%\('sip_mod_dir':[[:space:]]*\).*%\1'${PRODUCT_DIR}/lib/python${PYTHON_VERSION}/site-packages',%g" \
-       -e "s%\('qt_dir':[[:space:]]*\).*%\1'${QTDIR}',%g" \
-       -e "s%\('qt_version':[[:space:]]*\).*%\1${qt_version},%g" \
-       -e "s%\('qt_inc_dir':[[:space:]]*\).*%\1'${QTDIR}/include',%g" \
-       -e "s%\('qt_lib_dir':[[:space:]]*\).*%\1'${QTDIR}/lib',%g" \
-       -e "s%\('INCDIR_QT':[[:space:]]*\).*%\1'${QTDIR}/include',%g" \
-       -e "s%\('LIBDIR_QT':[[:space:]]*\).*%\1'${QTDIR}/lib',%g" \
-       -e "s%\('MOC':[[:space:]]*\).*%\1'${QTDIR}/bin/moc',%g" \
-       -e "s%\('py_version':[[:space:]]*\).*%\1${python_version},%g" \
-       -e "s%\('sip_config_args':[[:space:]]*\).*%\1'${SIP_CONFIGURE_OPTIONS}',%g" \
-       -e "s%\('py_inc_dir':[[:space:]]*\).*%\1'${PYTHONROOT}/include/python${PYTHON_VERSION}',%g" \
-       -e "s%\('py_lib_dir':[[:space:]]*\).*%\1'${PYTHONROOT}/lib/python${PYTHON_VERSION}/config',%g" \
-       -e "s%\('py_conf_inc_dir':[[:space:]]*\).*%\1'${PYTHONROOT}/include/python${PYTHON_VERSION}',%g" sipconfig.py > sipconfig.py.1
-    mv -f sipconfig.py.1 sipconfig.py
-fi
-
-# to generate environment scripts
-try_preinstalled
-}
-
-export PROCEDURE=$1;
-export INSTALL_WORK=$2;
-export SOURCE_DIR=$3;
-export INST_ROOT=$4;
-export PRODUCT_SEQUENCE=$5;
-export PRODUCT_TYPE=$6;
-export INSTALL_PRODUCTS=$7;
-shift
-REMOVE_SRC_TMP=$8;
-test $# == 10 && shift && SINGLE_DIR=$9
-export PRODUCT="sip-${SIP_VERSION}"
-export PRODUCT_DIR=${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
-export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
-export PRODUCT_SRC_DIR=${INST_ROOT}/${PRODUCT}_SRC
-source ./common.sh
-$PROCEDURE 
diff --git a/config_files/sip.sh b/config_files/sip.sh
new file mode 100755 (executable)
index 0000000..1b8ba04
--- /dev/null
@@ -0,0 +1,177 @@
+#!/bin/bash -noprofile
+
+####################################################################################
+#  File      : sip.sh
+#  Created   : Thu Dec 18 12:01:00 2002
+#  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
+#  Project   : SALOME
+#  Module    : Installation Wizard
+#  Copyright : 2002-2012 CEA
+#
+#  This script is the part of the SALOME installation procedure.
+#
+####################################################################################
+
+#
+# sip version
+#
+SIP_VERSION=4.10.2
+SIP_XVERSION=`echo ${SIP_VERSION} | awk -F. '{printf("%d",$1*10000+$2*100+$3)}'`
+
+check_version()
+{
+if [ -n "${SIPDIR}" ]; then
+    ver=`${SIPDIR}/bin/sip -V | awk '{print $1}'`
+    maj_ver=`echo $ver | awk -F. '{if(NF>0) print $1; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'`
+    min_ver=`echo $ver | awk -F. '{if(NF>1) print $2; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'`
+    rel_ver=`echo $ver | awk -F. '{if(NF>2) print $3; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'`
+    let ver=$maj_ver*10000+$min_ver*100+$rel_ver
+    if [ $ver -eq ${SIP_XVERSION} ] ; then
+       return 0
+    fi
+fi
+return 1
+}
+
+print_env_bin()
+{
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export SIPDIR=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
+export PATH=\${SIPDIR}/bin:\${PATH}
+export PYTHONPATH=\${SIPDIR}/lib/python\${PYTHON_VERSION}/site-packages:\${PYTHONPATH}
+export LD_LIBRARY_PATH=\${SIPDIR}/lib/python\${PYTHON_VERSION}/site-packages:\${LD_LIBRARY_PATH}
+##
+EOF
+(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
+make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+print_env_src()
+{
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
+#$DELIM ${PRODUCT_TYPE}_src $DELIM
+# nothing to do
+##
+EOF
+(test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
+make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+try_preinstalled(){
+try_existing ${PRODUCT_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+try_existing ${PRODUCT_SRC_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+return $?
+}
+
+install_source()
+{
+make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${INST_ROOT}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_source_and_build()
+{
+# install sources
+install_source
+
+# build sources
+test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
+cd ${PRODUCT_SRC_DIR}
+
+SIP_CONFIGURE_OPTIONS="-b ${PRODUCT_DIR}/bin"
+SIP_CONFIGURE_OPTIONS="${SIP_CONFIGURE_OPTIONS} -d ${PRODUCT_DIR}/lib/python${PYTHON_VERSION}/site-packages"
+SIP_CONFIGURE_OPTIONS="${SIP_CONFIGURE_OPTIONS} -e ${PRODUCT_DIR}/include/python${PYTHON_VERSION}"
+SIP_CONFIGURE_OPTIONS="${SIP_CONFIGURE_OPTIONS} -v ${PRODUCT_DIR}/sip"
+if test `uname -m` = "x86_64" ; then
+    SIP_CONFIGURE_OPTIONS="${SIP_CONFIGURE_OPTIONS} -p linux-g++-64"
+fi
+
+check_job ${PRODUCT_DIR}/CONFIGURE.LOG python ./configure.py ${SIP_CONFIGURE_OPTIONS}
+GCC=`which gcc`
+cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
+used gcc=$GCC
+EOF
+check_job ${PRODUCT_DIR}/MAKE.LOG make
+check_job ${PRODUCT_DIR}/INSTALL.LOG make install
+
+cd ${PRODUCT_DIR};
+
+# remove sources and temporary files after building
+if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
+    test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR}
+fi
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_binary()
+{
+make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+source ${INSTALL_WORK}/$SHRC
+
+# create a product directory
+test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR}
+
+SIP_CONFIGURE_OPTIONS="-b ${PRODUCT_DIR}/bin"
+SIP_CONFIGURE_OPTIONS="${SIP_CONFIGURE_OPTIONS} -d ${PRODUCT_DIR}/lib/python${PYTHON_VERSION}/site-packages"
+SIP_CONFIGURE_OPTIONS="${SIP_CONFIGURE_OPTIONS} -e ${PRODUCT_DIR}/include/python${PYTHON_VERSION}"
+SIP_CONFIGURE_OPTIONS="${SIP_CONFIGURE_OPTIONS} -v ${PRODUCT_DIR}/sip"
+if test `uname -m` = "x86_64" ; then
+    SIP_CONFIGURE_OPTIONS="${SIP_CONFIGURE_OPTIONS} -p linux-g++-64"
+fi
+
+# modify sipconfig.py file
+if [ -n "${PYTHONROOT}" ] && [ -n "${QTDIR}" ] ; then
+    cd ${PRODUCT_DIR}/lib/python${PYTHON_VERSION}/site-packages
+    python_version=`python -V 2>&1 | awk '{print $2}' | awk -F. '{printf("0x%02d%02d%02d",$1,$2,$3)}'`
+    qt_version=`grep -e "^#define[[:space:]]\+QT_VERSION[[:space:]]\+" ${QTDIR}/include/Qt/qglobal.h | sed -e 's%^#define[[:space:]\+QT_VERSION[[:space:]]\+\(.*\)$%\1%g'`
+    sed -e "s%\('default_bin_dir':[[:space:]]*\).*%\1'${PYTHONROOT}/bin',%g" \
+       -e "s%\('default_mod_dir':[[:space:]]*\).*%\1'${PYTHONROOT}/lib/python${PYTHON_VERSION}/site-packages',%g" \
+       -e "s%\('default_sip_dir':[[:space:]]*\).*%\1'${PRODUCT_DIR}/sip',%g" \
+       -e "s%\('sip_bin':[[:space:]]*\).*%\1'${PRODUCT_DIR}/bin/sip',%g" \
+       -e "s%\('sip_inc_dir':[[:space:]]*\).*%\1'${PRODUCT_DIR}/include/python${PYTHON_VERSION}',%g" \
+       -e "s%\('sip_mod_dir':[[:space:]]*\).*%\1'${PRODUCT_DIR}/lib/python${PYTHON_VERSION}/site-packages',%g" \
+       -e "s%\('qt_dir':[[:space:]]*\).*%\1'${QTDIR}',%g" \
+       -e "s%\('qt_version':[[:space:]]*\).*%\1${qt_version},%g" \
+       -e "s%\('qt_inc_dir':[[:space:]]*\).*%\1'${QTDIR}/include',%g" \
+       -e "s%\('qt_lib_dir':[[:space:]]*\).*%\1'${QTDIR}/lib',%g" \
+       -e "s%\('INCDIR_QT':[[:space:]]*\).*%\1'${QTDIR}/include',%g" \
+       -e "s%\('LIBDIR_QT':[[:space:]]*\).*%\1'${QTDIR}/lib',%g" \
+       -e "s%\('MOC':[[:space:]]*\).*%\1'${QTDIR}/bin/moc',%g" \
+       -e "s%\('py_version':[[:space:]]*\).*%\1${python_version},%g" \
+       -e "s%\('sip_config_args':[[:space:]]*\).*%\1'${SIP_CONFIGURE_OPTIONS}',%g" \
+       -e "s%\('py_inc_dir':[[:space:]]*\).*%\1'${PYTHONROOT}/include/python${PYTHON_VERSION}',%g" \
+       -e "s%\('py_lib_dir':[[:space:]]*\).*%\1'${PYTHONROOT}/lib/python${PYTHON_VERSION}/config',%g" \
+       -e "s%\('py_conf_inc_dir':[[:space:]]*\).*%\1'${PYTHONROOT}/include/python${PYTHON_VERSION}',%g" sipconfig.py > sipconfig.py.1
+    mv -f sipconfig.py.1 sipconfig.py
+fi
+
+# to generate environment scripts
+try_preinstalled
+}
+
+export PROCEDURE=$1;
+export INSTALL_WORK=$2;
+export SOURCE_DIR=$3;
+export INST_ROOT=$4;
+export PRODUCT_SEQUENCE=$5;
+export PRODUCT_TYPE=$6;
+export INSTALL_PRODUCTS=$7;
+shift
+REMOVE_SRC_TMP=$8;
+test $# == 10 && shift && SINGLE_DIR=$9
+export PRODUCT="sip-${SIP_VERSION}"
+export PRODUCT_DIR=${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
+export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
+export PRODUCT_SRC_DIR=${INST_ROOT}/${PRODUCT}_SRC
+source ./common.sh
+$PROCEDURE