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; }
|
||||
|
||||
case "${cat}" in
|
||||
CC) ;;
|
||||
KERNEL) FINAL=; CORE=;;
|
||||
CC) [ -z "${CORE}" -a -z "${FINAL}" ] && { doHelp; exit 1; };;
|
||||
KERNEL) unset FINAL CORE
|
||||
[ -z "${tool_suffix}" ] && { doHelp; exit 1; }
|
||||
;;
|
||||
*) FINAL=1; CORE=;;
|
||||
esac
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user