diff options
author | Swift Geek <swiftgeek@gmail.com> | 2017-09-14 06:56:02 +0000 |
---|---|---|
committer | Gogs <gogitservice@gmail.com> | 2017-09-14 06:56:02 +0000 |
commit | 71a2623fbef25fefc1886bc6374832a92188742d (patch) | |
tree | a2157a056b949fc8a8f42546e69d120f9dc594ac /libs | |
parent | 35d692494d22932129340ea9c1a8e329e380d6d7 (diff) | |
parent | 14ff5c44ea1825aeefc92003a0545eff64726b53 (diff) | |
download | librebootfr-71a2623fbef25fefc1886bc6374832a92188742d.tar.gz librebootfr-71a2623fbef25fefc1886bc6374832a92188742d.zip |
Merge branch 'grabbin-deps' of kragle/libreboot into master
Diffstat (limited to 'libs')
-rwxr-xr-x | libs/tool | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -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 |