OSDN Git Service

fix CLI version reader, and translate some x264 panel's tooltip
[handbrake-jp/handbrake-jp.git] / configure
1 #! /bin/sh
2 #
3
4 inpath()
5 {
6     IFS=:
7     for d in $PATH
8     do
9         if [ -x $d/$1 ]; then
10             return 0
11         fi
12     done
13     return 1
14 }
15
16 for p in python2.7 python2.6 python2.5 python2.4 python2 python
17 do
18     if ( inpath $p ); then
19         exec $p `dirname $0`/make/configure.py "$@"
20         exit 0
21     fi
22 done
23
24 echo "ERROR: no suitable version of python found."
25 exit 1