summaryrefslogtreecommitdiff
path: root/include/lib.sh
diff options
context:
space:
mode:
Diffstat (limited to 'include/lib.sh')
-rw-r--r--include/lib.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/lib.sh b/include/lib.sh
index 43b1a318..1830356e 100644
--- a/include/lib.sh
+++ b/include/lib.sh
@@ -144,6 +144,15 @@ chkvars()
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_()
{
find_ex "x_" "$@"