From 0848622799b8c627cd650d848ffa7d592d80b26d Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 17 Aug 2023 11:41:58 +0100 Subject: 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 --- fetch_trees | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fetch_trees') 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 } -- cgit v1.2.1