summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-08-27 13:34:33 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-08-27 13:34:33 +0000
commita5937e5c4590e806832d880b132c7b364b03e3cc (patch)
treeb12ce50eb3543a8e5ea70399c5440927d6004efc /abuild.in
parent2dc61eb8c740153f6c024b07f97d336514aeadaa (diff)
downloadabuild-a5937e5c4590e806832d880b132c7b364b03e3cc.tar.gz
abuild-a5937e5c4590e806832d880b132c7b364b03e3cc.tar.bz2
abuild-a5937e5c4590e806832d880b132c7b364b03e3cc.tar.xz
abuild-a5937e5c4590e806832d880b132c7b364b03e3cc.zip
abuild: support for alternative awks
some awk's does not understand -F "\ " and treats that as special space
Diffstat (limited to 'abuild.in')
-rwxr-xr-xabuild.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/abuild.in b/abuild.in
index fbfee57..24920d5 100755
--- a/abuild.in
+++ b/abuild.in
@@ -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