diff options
author | Issam E. Maghni <issam.e.maghni@mailbox.org> | 2020-12-23 18:27:33 (GMT) |
---|---|---|
committer | Issam E. Maghni <issam.e.maghni@mailbox.org> | 2020-12-23 18:27:33 (GMT) |
commit | d9a788b3565a066b8b91fd8991befbd044c4ebba (patch) | |
tree | 047f827e46c0e976a7ca1c7e204f6261888a046e /bootstrap | |
parent | 95c59252c4116c185e898762d82b49d7a4f42445 (diff) | |
download | CMake-d9a788b3565a066b8b91fd8991befbd044c4ebba.zip CMake-d9a788b3565a066b8b91fd8991befbd044c4ebba.tar.gz CMake-d9a788b3565a066b8b91fd8991befbd044c4ebba.tar.bz2 |
bootstrap: test -a|o is not POSIX
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -944,11 +944,10 @@ while test $# != 0; do done # Make sure the generator is valid -if test "${cmake_bootstrap_generator}" != "MSYS Makefiles" -a \ - "${cmake_bootstrap_generator}" != "Unix Makefiles" -a \ - "${cmake_bootstrap_generator}" != "Ninja"; then - cmake_error 10 "Invalid generator: ${cmake_bootstrap_generator}" -fi +case "${cmake_bootstrap_generator}" in + 'MSYS Makefiles'|'Unix Makefiles'|'Ninja') ;; + *) cmake_error 10 "Invalid generator: ${cmake_bootstrap_generator}" +esac # If verbose, display some information about bootstrap if test -n "${cmake_verbose}"; then |