blob: 14f08a3cb4132ff2a61819d20a262d3caf984970 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#!/bin/sh
#
inpath()
{
IFS=:
for d in $PATH
do
if [ -x $d/$1 ]; then
return 0
fi
done
return 1
}
if ( inpath bash ); then
pp=""
for p in python3 python2 python
do
if ( inpath $p ); then
pp="$p"
break
fi
done
if [ pp != "" ]; then
exec $pp `dirname $0`/make/configure.py "$@"
exit 0
else
echo "ERROR: no suitable version of python found."
fi
else
echo "ERROR: bash shell not found."
fi
exit 1
|