mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-17 18:34:57 +02:00
git.sh: move singletree() to lib.sh
it's also used by mk, to determine which build function to use (build_project or build_targets). Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -66,15 +66,6 @@ git_prep()
|
|||||||
mv "$tmpgit" "$_loc" || err "git_prep: !mv $tmpgit $_loc"
|
mv "$tmpgit" "$_loc" || err "git_prep: !mv $tmpgit $_loc"
|
||||||
}
|
}
|
||||||
|
|
||||||
# return 0 if project is single-tree, otherwise 1
|
|
||||||
# e.g. coreboot is multi-tree, so 1
|
|
||||||
singletree()
|
|
||||||
{
|
|
||||||
for targetfile in "config/${1}/"*/target.cfg; do
|
|
||||||
[ -e "$targetfile" ] && [ -f "$targetfile" ] && return 1; :
|
|
||||||
done; :
|
|
||||||
}
|
|
||||||
|
|
||||||
fetch_submodule()
|
fetch_submodule()
|
||||||
{
|
{
|
||||||
mcfgdir="$mdir/${1##*/}"; eval \
|
mcfgdir="$mdir/${1##*/}"; eval \
|
||||||
|
|||||||
@@ -144,6 +144,15 @@ chkvars()
|
|||||||
done; :
|
done; :
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# return 0 if project is single-tree, otherwise 1
|
||||||
|
# e.g. coreboot is multi-tree, so 1
|
||||||
|
singletree()
|
||||||
|
{
|
||||||
|
for targetfile in "config/${1}/"*/target.cfg; do
|
||||||
|
[ -e "$targetfile" ] && [ -f "$targetfile" ] && return 1; :
|
||||||
|
done; :
|
||||||
|
}
|
||||||
|
|
||||||
fe_()
|
fe_()
|
||||||
{
|
{
|
||||||
find_ex "x_" "$@"
|
find_ex "x_" "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user