summaryrefslogtreecommitdiff
path: root/script/update
diff options
context:
space:
mode:
authorRiku Viitanen <riku.viitanen@protonmail.com>2023-09-08 01:03:32 +0300
committerRiku Viitanen <riku.viitanen@protonmail.com>2023-09-08 20:43:53 +0300
commit1bde6bb3c4b5433e7744521df775b69ae62ccc40 (patch)
treea56bdc7dcbd0856c3d9e74aac2704a592aa26744 /script/update
parent4d3b16da38cf7806ebc247ce9c15f11b91ebcf19 (diff)
Support multiple dependencies per project
Signed-off-by: Riku Viitanen <riku.viitanen@protonmail.com>
Diffstat (limited to 'script/update')
-rwxr-xr-xscript/update/project/repo8
1 files changed, 5 insertions, 3 deletions
diff --git a/script/update/project/repo b/script/update/project/repo
index a5e8ef62..0183bf43 100755
--- a/script/update/project/repo
+++ b/script/update/project/repo
@@ -33,8 +33,10 @@ main()
verify_config
clone_project
- [ "${depend}" = "" ] || ./update project repo ${depend} || \
- fail "Cannot fetch dependency, ${depend}, for project, ${name}"
+ [ "${depend}" = "" ] || for d in ${depend} ; do
+ ./update project repo ${d} || \
+ fail "Cannot fetch dependency, ${d}, for project, ${name}"
+ done
rm -Rf "${tmp_dir}" || fail "cannot remove tmpdir, ${tmp_dir}"
}
@@ -54,7 +56,7 @@ read_config()
bkup_url:*)
bkup_url=${2} ;;
depend:*)
- depend=${2} ;;
+ depend="${depend} ${2} " ;;
esac
done << EOF
$(eval "awk '${awkstr}' config/git/revisions")