HandBrake/make/python_launcher
robxnano 1ba1f05230 NetBSD: Build fixes
- Update python versions
- Add libjpeg-turbo to modules to avoid conflict
- Fix failure to make metainfo file
2023-07-20 11:21:29 +02:00

25 lines
368 B
Bash
Executable File

#!/bin/sh
inpath()
{
IFS=:
for d in $PATH
do
if [ -x $d/$1 ]; then
return 0
fi
done
return 1
}
for p in python3 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python
do
if ( inpath $p ); then
exec $p "$@"
exit 0
fi
done
echo "ERROR: no suitable version of python found."
exit 1