check arguments before compiling dependencies

This commit is contained in:
Sergej Schumilo 2022-05-11 19:40:57 +02:00
parent ab7ee8223c
commit 54f4d2f1ab

View File

@ -102,6 +102,14 @@ if [ "$#" -ne 1 ] ; then
error error
fi fi
case $1 in
"dynamic"|"debug"|"debug_static"|"static"|"lto")
;;
*)
error
;;
esac
if [ -z "$LIBXDC_ROOT" -o -z "$CAPSTONE_ROOT" ]; then if [ -z "$LIBXDC_ROOT" -o -z "$CAPSTONE_ROOT" ]; then
git submodule init git submodule init
git submodule update libxdc git submodule update libxdc