aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorSwift Geek <swiftgeek@gmail.com>2017-09-14 06:56:02 +0000
committerGogs <gogitservice@gmail.com>2017-09-14 06:56:02 +0000
commit71a2623fbef25fefc1886bc6374832a92188742d (patch)
treea2157a056b949fc8a8f42546e69d120f9dc594ac /libs
parent35d692494d22932129340ea9c1a8e329e380d6d7 (diff)
parent14ff5c44ea1825aeefc92003a0545eff64726b53 (diff)
downloadlibrebootfr-71a2623fbef25fefc1886bc6374832a92188742d.tar.gz
librebootfr-71a2623fbef25fefc1886bc6374832a92188742d.zip
Merge branch 'grabbin-deps' of kragle/libreboot into master
Diffstat (limited to 'libs')
-rwxr-xr-xlibs/tool19
1 files changed, 19 insertions, 0 deletions
diff --git a/libs/tool b/libs/tool
index 03d2d508..8fa154ef 100755
--- a/libs/tool
+++ b/libs/tool
@@ -200,6 +200,25 @@ tool_action_arguments_recursive() {
fi
}
+tool_arguments_targets() {
+ local tool="$1"
+ shift
+
+ local tool_path="$(tool_path "${tool}")"
+ local targets_path="${tool_path}/${CONFIGS}"
+ local argument
+
+ for argument in "$@"; do
+ targets_path="${targets_path}/${argument}"
+ done
+
+ targets_path="${targets_path}/${TARGETS}"
+
+ if [[ -f "${targets_path}" ]]; then
+ cat "${targets_path}"
+ fi
+}
+
tool_path() {
local tool=$1