summaryrefslogtreecommitdiff
path: root/script/update
diff options
context:
space:
mode:
authorLeah Rowe <vimuser@noreply.codeberg.org>2023-09-08 21:02:04 +0000
committerLeah Rowe <vimuser@noreply.codeberg.org>2023-09-08 21:02:04 +0000
commit4a459b0217c45a9dbd761793b040be67502c4d7e (patch)
tree5fa43f7a41ba095d71dd87c5b60fa1d6e32a454a /script/update
parent7e8465bec86805e5d6d67d348d811a09243d3b9c (diff)
parent7b6fb958977f5d5f3f2c3ac91726efa7d72860f0 (diff)
Merge pull request 'pico-serprog improvements' (#128) from Riku_V/lbmk:master into master
Reviewed-on: https://codeberg.org/libreboot/lbmk/pulls/128
Diffstat (limited to 'script/update')
-rwxr-xr-xscript/update/project/repo12
1 files changed, 7 insertions, 5 deletions
diff --git a/script/update/project/repo b/script/update/project/repo
index 24bd14ce..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")
@@ -85,8 +87,8 @@ clone_project()
[ ! -d "${location}" ] || \
rm -Rf "${location}" || \
fail "clone_project: Can't remove directory '${location}'"
- [ "${name}" != "rpi-pico-serprog" ] || mkdir -p ${location%/*} || \
- fail "clone_project: cannot make directory for rpi-pico-serprog"
+ [ "${location}" = "${location%/*}" ] || mkdir -p ${location%/*} || \
+ fail "clone_project: cannot make directory for ${name}"
mv "${tmp_dir}" "${location}" || \
fail "clone_project: could not copy temp file to destination"
}