From: vsr Date: Wed, 1 Mar 2006 14:58:24 +0000 (+0000) Subject: PAL11775 X-Git-Tag: mergeto_SALOME_3_17May06~44 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=93d03b456d9f7bb82b65cf1c06412bd5475411ec;p=tools%2Finstall.git PAL11775 --- diff --git a/config_files/Python-2.3.5.sh b/config_files/Python-2.3.5.sh index f74c4cb..2111fc2 100755 --- a/config_files/Python-2.3.5.sh +++ b/config_files/Python-2.3.5.sh @@ -114,6 +114,11 @@ check_job ${PRODUCT_DIR}/MAKE.LOG make check_job ${PRODUCT_DIR}/MAKINSTALL.LOG make install (cd ${PRODUCT_DIR}/lib/python2.3/config; ln -s ../../libpython2.3.so.1.0 libpython2.3.so) +cd ${PRODUCT_DIR}/bin +sed -e "s%#\!.*python%#\!/usr/bin/env python%" pydoc > _pydoc +mv -f _pydoc pydoc +chmod a+x pydoc + #du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log cd ${PRODUCT_DIR}; rm -fr ${PRODUCT_WORK} print_env @@ -126,6 +131,11 @@ source ${INSTALL_WORK}/$SHRC check_jb tar xfz ${SOURCE_DIR}/Python-2.3.5.tar.gz -C ${INSTALL_ROOT} +cd ${PRODUCT_DIR}/bin +sed -e "s%#\!.*python%#\!/usr/bin/env python%" pydoc > _pydoc +mv -f _pydoc pydoc +chmod a+x pydoc + print_env } diff --git a/config_files/omniORB-4.0.5.sh b/config_files/omniORB-4.0.5.sh index 7ec46d5..e07f9aa 100755 --- a/config_files/omniORB-4.0.5.sh +++ b/config_files/omniORB-4.0.5.sh @@ -131,6 +131,14 @@ EOF check_job ${PRODUCT_DIR}/MAKE_OMNINOTIFY.LOG make check_job ${PRODUCT_DIR}/INSTALL_OMNINOTIFY.LOG make install +cd ${PRODUCT_DIR}/bin +sed -e "s%#\!.*python%#\!/usr/bin/env python%" omniidl > _omniidl +mv -f _omniidl omniidl +chmod a+x omniidl +sed -e "s%#\!.*python%#\!/usr/bin/env python%" omniidlrun.py > _omniidlrun.py +mv -f _omniidlrun.py omniidlrun.py +chmod a+x omniidlrun.py + #du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log cd ${PRODUCT_DIR} rm -fr ${INSTALL_WORK}/omniORB-4.0.5 @@ -146,12 +154,15 @@ source ${INSTALL_WORK}/$SHRC check_jb tar xfz ${SOURCE_DIR}/omniORB-4.0.5.tar.gz -C ${INSTALL_ROOT} -ln -s ${PRODUCT_DIR} ${INSTALL_ROOT}/omni +ln -sf ${PRODUCT_DIR} ${INSTALL_ROOT}/omni cd ${PRODUCT_DIR}/bin -sed -e "s%#\!.*python%#\!`which python`%" omniidl > _omniidl +sed -e "s%#\!.*python%#\!/usr/bin/env python%" omniidl > _omniidl mv -f _omniidl omniidl chmod a+x omniidl +sed -e "s%#\!.*python%#\!/usr/bin/env python%" omniidlrun.py > _omniidlrun.py +mv -f _omniidlrun.py omniidlrun.py +chmod a+x omniidlrun.py print_env }