Salome HOME
PAL11775
[tools/install.git] / config_files / omniORB-3.0.5.sh
index 8cbc8ade31ec9a4667cbeda4928230b78710f2b7..11ec4540f82559de71b2501ca645e5d955f193ca 100755 (executable)
@@ -2,7 +2,7 @@
 
 check_version()
 {
-if [ -z "$OMNIORBDIR" ]; then
+if [ -z "${OMNIORBDIR}" ]; then
    #echo "OMNIORBDIR doesn't set"
    return 1
 fi
@@ -131,6 +131,12 @@ EOF
 check_job ${PRODUCT_DIR}/MAKEXPORTnotify.LOG make export
 
 ln -s ${PRODUCT_DIR} ${INSTALL_ROOT}/omni
+
+cd ${PRODUCT_DIR}/bin/i586_linux_2.0_glibc2.1
+sed -e "s%\(#\!/usr/bin/env[[:space:]]*\)python%\1python%" omniidlrun.py > _omniidlrun.py
+mv -f _omniidlrun.py omniidlrun.py
+chmod a+x omniidlrun.py
+
 print_env
 }
 
@@ -142,6 +148,12 @@ source ${INSTALL_WORK}/$SHRC
 check_jb tar xfz ${SOURCE_DIR}/omniORB-3.0.5.tar.gz -C ${INSTALL_ROOT}
 
 ln -s ${PRODUCT_DIR} ${INSTALL_ROOT}/omni
+
+cd ${PRODUCT_DIR}/bin/i586_linux_2.0_glibc2.1
+sed -e "s%\(#\!/usr/bin/env[[:space:]]*\)python%\1python%" omniidlrun.py > _omniidlrun.py
+mv -f _omniidlrun.py omniidlrun.py
+chmod a+x omniidlrun.py
+
 print_env
 }