Add sanity checks.

This commit is contained in:
Yann E. MORIN" 2007-03-04 20:12:18 +00:00
parent d2ac914c75
commit 8456b5fdb9

View File

@ -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