diff options
author | Swift Geek <swiftgeek@gmail.com> | 2019-04-24 03:40:32 +0000 |
---|---|---|
committer | Gogs <gogitservice@gmail.com> | 2019-04-24 03:40:32 +0000 |
commit | 92a7d05d90c6c45648820bcea61e725f8c0d2893 (patch) | |
tree | 8a7e43d5f8fa2b8119d4a014ebd5d25a8df6bbec /libs/project | |
parent | 8d3cd741781cab0d936814170df70f637bfd48b7 (diff) | |
parent | ac24b44b0ad54a45d32884c96e537f6b2198307e (diff) | |
download | librebootfr-92a7d05d90c6c45648820bcea61e725f8c0d2893.tar.gz librebootfr-92a7d05d90c6c45648820bcea61e725f8c0d2893.zip |
Merge branch 'blobs' of and_who/libreboot into master
Diffstat (limited to 'libs/project')
-rwxr-xr-x | libs/project | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/libs/project b/libs/project index dfb745a0..52888e32 100755 --- a/libs/project +++ b/libs/project @@ -535,6 +535,22 @@ project_sources_prepare_patch() { done } +project_blobs() { + local project=$1 + shift + + local blobs_path=$(project_blobs_path "$project" "$@") + local blobs_ignore_path=$(project_blobs_ignore_path "$project" "$@") + + if [[ -n $blobs_path ]]; then + if [[ -n $blobs_ignore_path ]]; then + comm -23 <(sort "$blobs_path") <(sort "$blobs_ignore_path") + else + cat "$blobs_path" + fi + fi +} + project_blobs_path() { local project=$1 shift @@ -564,8 +580,6 @@ project_blobs_path() { return fi done - - printf '%s\n' "$blobs_path" } project_blobs_ignore_path() { |