From dbe34ba407eca01392140731d90b94e7224a36b7 Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Mon, 18 Apr 2022 21:45:32 +0200 Subject: [PATCH] spns #29664: omniORB: fix python path --- products/compil_scripts/omniORB.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/products/compil_scripts/omniORB.sh b/products/compil_scripts/omniORB.sh index ff7df41..17c3ffe 100755 --- a/products/compil_scripts/omniORB.sh +++ b/products/compil_scripts/omniORB.sh @@ -34,17 +34,17 @@ then echo "ERROR on make install" exit 3 fi +function version_ge() { test "$(echo "$@" | tr " " "\n" | sort -rV | head -n 1)" == "$1"; } -if [[ $VERSION == "4.1.6" ]] -then +if version_ge $OT_VERSION "4.1" ; then # fix headers echo echo "*** fix headers" cd $PRODUCT_INSTALL/bin - sed -e "s%#\!.*python%#\!/usr/bin/env python%" omniidl > _omniidl + sed -e "s%#\!.*python%#\!/usr/bin/env python3%" omniidl > _omniidl mv -f _omniidl omniidl chmod a+x omniidl - sed -e "s%#\!.*python%#\!/usr/bin/env python%" omniidlrun.py > _omniidlrun.py + sed -e "s%#\!.*python%#\!/usr/bin/env python3%" omniidlrun.py > _omniidlrun.py mv -f _omniidlrun.py omniidlrun.py chmod a+x omniidlrun.py fi -- 2.39.2