mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-21 22:34:05 +00:00
Separate scan for commands used during configure.
This commit is contained in:
parent
b56f4540e9
commit
50c78313f2
11
configure
vendored
11
configure
vendored
@ -12,6 +12,14 @@ err() {
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
||||
need_cmd() {
|
||||
if which $1 >/dev/null 2>&1
|
||||
then msg "found $1"
|
||||
else err "need $1"
|
||||
fi
|
||||
}
|
||||
|
||||
make_dir() {
|
||||
if [ ! -d $1 ]
|
||||
then
|
||||
@ -63,6 +71,9 @@ probe_need() {
|
||||
fi
|
||||
}
|
||||
|
||||
msg "looking for configure programs"
|
||||
need_cmd mkdir
|
||||
need_cmd printf
|
||||
|
||||
msg "recreating config.mk"
|
||||
echo '' >config.mk
|
||||
|
Loading…
Reference in New Issue
Block a user