mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-18 02:39:46 +00:00
Add sanity checks.
This commit is contained in:
parent
d2ac914c75
commit
8456b5fdb9
@ -57,8 +57,10 @@ done
|
|||||||
[ -n "${tool}" -o -n "${VERSION}" ] || { doHelp; exit 1; }
|
[ -n "${tool}" -o -n "${VERSION}" ] || { doHelp; exit 1; }
|
||||||
|
|
||||||
case "${cat}" in
|
case "${cat}" in
|
||||||
CC) ;;
|
CC) [ -z "${CORE}" -a -z "${FINAL}" ] && { doHelp; exit 1; };;
|
||||||
KERNEL) FINAL=; CORE=;;
|
KERNEL) unset FINAL CORE
|
||||||
|
[ -z "${tool_suffix}" ] && { doHelp; exit 1; }
|
||||||
|
;;
|
||||||
*) FINAL=1; CORE=;;
|
*) FINAL=1; CORE=;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user