From 2d95201e5673c497a4e111002d55615d2bb0956a Mon Sep 17 00:00:00 2001 From: Said Urtabajev Date: Tue, 12 Nov 2024 19:12:22 +0200 Subject: [PATCH] Update buildall.sh to use python3 where python is not in path --- src/buildall.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/buildall.sh b/src/buildall.sh index c03e36d..bb32853 100755 --- a/src/buildall.sh +++ b/src/buildall.sh @@ -179,8 +179,12 @@ ParseGlibcVer() glibcver=2.9 # max GLIBC version to support dirname=./${BUILDDIR}/release/lib echo - echo python ./test/parseglibc.py -d ${dirname} -v ${glibcver} - python ./test/parseglibc.py -d ${dirname} -v ${glibcver} + PYTHON=python + if [ -z "$(which ${PYTHON} 2> /dev/null )" ]; then + PYTHON=python3 + fi + echo ${PYTHON} ./test/parseglibc.py -d ${dirname} -v ${glibcver} + ${PYTHON} ./test/parseglibc.py -d ${dirname} -v ${glibcver} if [ $? != 0 ]; then let TotalErrors+=1 echo Error: ParseGlibcVer failed: maximum supported GLIBC version is ${glibcver}.