rust/configure

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
292 B
Plaintext
Raw Normal View History

#!/bin/sh
2011-03-17 00:17:32 +08:00
script="$(dirname $0)"/src/bootstrap/configure.py
2016-01-22 00:30:22 +08:00
try() {
cmd=$1
shift
T=$($cmd --version 2>/dev/null)
if [ $? -eq 0 ]; then
exec $cmd "$script" "$@"
fi
}
2019-11-21 20:57:40 +08:00
try python3 "$@"
try python2.7 "$@"
try python27 "$@"
try python2 "$@"
exec python $script "$@"