]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
easy-builder: make possible to check for more than one submodule
authorThomas Debesse <dev@illwieckz.net>
Tue, 31 Mar 2020 23:37:26 +0000 (01:37 +0200)
committerThomas Debesse <dev@illwieckz.net>
Tue, 31 Mar 2020 23:37:26 +0000 (01:37 +0200)
easy-builder

index b360b2dba4d67630f3a6d43b4a4f1c109f0885fd..316802ff2856b5f18c8efaf6a8d932216b480fc5 100755 (executable)
@@ -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