diff options
author | Leah Rowe <leah@libreboot.org> | 2025-05-05 15:31:33 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-05-05 15:31:33 +0100 |
commit | 62ec3dac07584d6ab8e7f86587e730b3d159e8ef (patch) | |
tree | 9afd1cd2390e0172d908e0a01813254dbbe857bd /include/git.sh | |
parent | 6b247c93e25f7283524edb6b6e19ca3296c78006 (diff) |
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>
Diffstat (limited to 'include/git.sh')
-rw-r--r-- | include/git.sh | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/git.sh b/include/git.sh index ded12625..7995df06 100644 --- a/include/git.sh +++ b/include/git.sh @@ -66,15 +66,6 @@ git_prep() 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() { mcfgdir="$mdir/${1##*/}"; eval \ |