Commit a5937e5c authored by Natanael Copa's avatar Natanael Copa

abuild: support for alternative awks

some awk's does not understand -F "\ " and treats that as special space
parent 2dc61eb8
......@@ -453,7 +453,7 @@ prepare_tracedeps() {
options_has "!tracedeps" && return 0
find -name '*.so' -o -name '*.so.[0-9]*' | sed 's:.*/::' \
>"$controldir"/.provides-so
scanelf -Rn "$dir" | awk -F "\ " '$1 == "ET_DYN" || $1 == "ET_EXEC" {print $2}' \
scanelf -Rn "$dir" | tr ' ' ':' | awk -F ":" '$1 == "ET_DYN" || $1 == "ET_EXEC" {print $2}' \
| sed 's:,:\n:g' | sort | uniq \
| while read i; do
# only add files that are not self provided
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment