mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-13 14:59:34 +02:00
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>
This commit is contained in:
+3
-3
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user