[build] ERROR vs BAIL
This commit is contained in:
parent
56c9feade8
commit
4fba537ff5
@ -3,7 +3,7 @@
|
||||
# ToAruOS Kernel / Userspace
|
||||
|
||||
function INFO {
|
||||
echo $1 >&2
|
||||
echo -e "\033[34;1minfo\033[0m $1" >&2
|
||||
}
|
||||
|
||||
function WARN {
|
||||
@ -12,6 +12,9 @@ function WARN {
|
||||
|
||||
function ERROR {
|
||||
echo -e "\033[31;1merror\033[0m $1" >&2
|
||||
}
|
||||
|
||||
function BAIL {
|
||||
exit 1
|
||||
}
|
||||
|
||||
@ -21,12 +24,14 @@ if [ -z `which clang` ] ; then
|
||||
WARN "Missing gcc"
|
||||
if [ -z `which cc` ] ; then
|
||||
ERROR "No compiler found"
|
||||
BAIL
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z `which genext2fs` ] ; then
|
||||
WARN "Missing genext2fs"
|
||||
INFO "You can probably get it from a package of the same name."
|
||||
ERROR "Missing genext2fs"
|
||||
INFO "You can probably get it from a package of the same name."
|
||||
BAIL
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user