From: Thomas Debesse Date: Tue, 31 Mar 2020 23:37:26 +0000 (+0200) Subject: easy-builder: make possible to check for more than one submodule X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b8fc25203ea2cc9290954c68dbf6208c6438a36e;p=xonotic%2Fnetradiant.git easy-builder: make possible to check for more than one submodule --- diff --git a/easy-builder b/easy-builder index b360b2db..316802ff 100755 --- a/easy-builder +++ b/easy-builder @@ -86,10 +86,13 @@ do done declare -a fetch_submodules_cmd -if ! [ -f "${project_source_dir}/libs/crunch/inc/crn_decomp.h" ] -then - fetch_submodules_cmd=(git -C "${project_source_dir}" submodule update --init --recursive) -fi +for submodule_file in 'libs/crunch/inc/crn_decomp.h' +do + if ! [ -f "${project_source_dir}/${submodule_file}" ] + then + fetch_submodules_cmd=(git -C "${project_source_dir}" submodule update --init --recursive) + fi +done set -x