]> git.lizzy.rs Git - rust.git/blob - configure
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / configure
1 #!/bin/sh
2
3 script="$(dirname $0)"/src/bootstrap/configure.py
4
5 try() {
6     cmd=$1
7     shift
8     T=$($cmd --version 2>/dev/null)
9     if [ $? -eq 0 ]; then
10         exec $cmd "$script" "$@"
11     fi
12 }
13
14 try python3 "$@"
15 try python2.7 "$@"
16 try python27 "$@"
17 try python2 "$@"
18 exec python $script "$@"