]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
PAL11775
authorvsr <vsr@opencascade.com>
Wed, 1 Mar 2006 14:58:24 +0000 (14:58 +0000)
committervsr <vsr@opencascade.com>
Wed, 1 Mar 2006 14:58:24 +0000 (14:58 +0000)
config_files/Python-2.3.5.sh
config_files/omniORB-4.0.5.sh

index f74c4cb77fa6b6c2b089e1363050862b49474c32..2111fc2102f79fea8fae2eada9b91b83797bc783 100755 (executable)
@@ -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
 }
 
index 7ec46d5f8a11b8987ea327f6a4436dd28997e5b2..e07f9aa26782c1b4db515f84976d15f090f40341 100755 (executable)
@@ -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
 }