From 4ca04a447d8c8250642f9c332645828120f51cb3 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 1 Mar 2006 14:57:57 +0000 Subject: [PATCH] PAL11775 --- config_files/Python-2.3.4.sh | 10 ++++++++++ config_files/omniORB-4.0.5.sh | 15 +++++++++++++-- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/config_files/Python-2.3.4.sh b/config_files/Python-2.3.4.sh index 8178434..b0ac880 100755 --- a/config_files/Python-2.3.4.sh +++ b/config_files/Python-2.3.4.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.4.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 } -- 2.39.2