summaryrefslogtreecommitdiff
path: root/fetch_trees
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-08-17 11:41:58 +0100
committerLeah Rowe <leah@libreboot.org>2023-08-17 11:50:06 +0100
commit0848622799b8c627cd650d848ffa7d592d80b26d (patch)
tree54c9c187d704abb83ba5c7a40f4bce2355b0e165 /fetch_trees
parent8459e33bbcbe70cc08f449c3d46f1310c65680a1 (diff)
remove download scripts, consolidate into script
most of them were just calling the gitclone script, so remove them. the grub script was treating gnulib as a dependency. i've now added the ability to grab 1 dependency, in the gitclone script (it should be expanded later to support multiple dependencies) the gitclone script has been renamed to "fetch". the "fetch_trees" script does more or less the same thing, but calls "fetch" and handles multiple revisions if a project needs that this is more efficient, and slightly reduces the code size of lbmk! Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'fetch_trees')
-rwxr-xr-xfetch_trees6
1 files changed, 3 insertions, 3 deletions
diff --git a/fetch_trees b/fetch_trees
index 37ff0928..19112a2e 100755
--- a/fetch_trees
+++ b/fetch_trees
@@ -78,7 +78,7 @@ download_for_target()
return 0
fi
- gitclone_from_upstream || exit 1
+ fetch_from_upstream || exit 1
prepare_new_tree "${1}" "${tree}" "${rev}" \
|| exit 1
@@ -133,7 +133,7 @@ check_config_for_target()
touch "${cfgsdir}/${_target}/seen"
}
-gitclone_from_upstream()
+fetch_from_upstream()
{
[ ! -d "${project}" ] && \
mkdir -p "${project}"
@@ -141,7 +141,7 @@ gitclone_from_upstream()
return 1
[ -d "${project}/${project}" ] && \
return 0
- ./gitclone ${project} || \
+ ./fetch ${project} || \
return 1
}