Salome HOME
Update configuration files till Salome V3.2.4
[tools/install.git] / config_files / omniORB-4.0.5.sh
index 7ec46d5f8a11b8987ea327f6a4436dd28997e5b2..a870568043520ce02585cb74e0d9765e62c41c26 100755 (executable)
@@ -1,4 +1,16 @@
-#!/bin/sh
+#!/bin/bash -noprofile
+
+####################################################################################
+#  File      : omniORB-4.0.5.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-2006 CEA
+#
+#  This script is the part of the SALOME installation procedure.
+#
+####################################################################################
 
 check_version()
 {
@@ -131,6 +143,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 +166,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
 }