mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-18 23:24:11 +02:00
git.sh: remove prep_submodule()
merge it with git_prep, since it's only a tiny function and only called from there. the for loop moved to the if block still makes sense on casual reading. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+3
-8
@@ -56,7 +56,9 @@ git_prep()
|
|||||||
chkvars rev
|
chkvars rev
|
||||||
tmpclone "$1" "$2" "$tmpgit" "$rev" "$_patchdir"
|
tmpclone "$1" "$2" "$tmpgit" "$rev" "$_patchdir"
|
||||||
if singletree "$project" || [ $# -gt 4 ]; then
|
if singletree "$project" || [ $# -gt 4 ]; then
|
||||||
prep_submodules "$_loc"
|
[ -f "$mdir/module.list" ] && while read -r msrcdir; do
|
||||||
|
fetch_submodule "$msrcdir"
|
||||||
|
done < "$mdir/module.list"; :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ "$project" = "coreboot" ] && [ -n "$xtree" ] && [ $# -gt 2 ] && \
|
[ "$project" = "coreboot" ] && [ -n "$xtree" ] && [ $# -gt 2 ] && \
|
||||||
@@ -67,13 +69,6 @@ git_prep()
|
|||||||
move_repo "$_loc"
|
move_repo "$_loc"
|
||||||
}
|
}
|
||||||
|
|
||||||
prep_submodules()
|
|
||||||
{
|
|
||||||
[ -f "$mdir/module.list" ] && while read -r msrcdir; do
|
|
||||||
fetch_submodule "$msrcdir"
|
|
||||||
done < "$mdir/module.list"; :
|
|
||||||
}
|
|
||||||
|
|
||||||
fetch_submodule()
|
fetch_submodule()
|
||||||
{
|
{
|
||||||
mcfgdir="$mdir/${1##*/}"; eval \
|
mcfgdir="$mdir/${1##*/}"; eval \
|
||||||
|
|||||||
Reference in New Issue
Block a user