mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +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
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
need_cmd() {
|
||||||
|
if which $1 >/dev/null 2>&1
|
||||||
|
then msg "found $1"
|
||||||
|
else err "need $1"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
make_dir() {
|
make_dir() {
|
||||||
if [ ! -d $1 ]
|
if [ ! -d $1 ]
|
||||||
then
|
then
|
||||||
@ -63,6 +71,9 @@ probe_need() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
msg "looking for configure programs"
|
||||||
|
need_cmd mkdir
|
||||||
|
need_cmd printf
|
||||||
|
|
||||||
msg "recreating config.mk"
|
msg "recreating config.mk"
|
||||||
echo '' >config.mk
|
echo '' >config.mk
|
||||||
|
Loading…
Reference in New Issue
Block a user