aboutgitcode
diff options
context:
space:
mode:
authorSevinj Aghayeva <sevinj.aghayeva@gmail.com>2022-06-20 14:46:49 -0400
committerStefano Brivio <sbrivio@redhat.com>2022-06-22 12:19:06 +0200
commit29c0bd7eb46b73cb254c7e25a32213f664077573 (patch)
tree68596dd0b61d810c619069ddccf1c534043ea079
parentfc2a8ed13cfc99aca1b3804008e30e224983b820 (diff)
downloadmbuto-29c0bd7eb46b73cb254c7e25a32213f664077573.tar
mbuto-29c0bd7eb46b73cb254c7e25a32213f664077573.tar.gz
mbuto-29c0bd7eb46b73cb254c7e25a32213f664077573.tar.bz2
mbuto-29c0bd7eb46b73cb254c7e25a32213f664077573.tar.lz
mbuto-29c0bd7eb46b73cb254c7e25a32213f664077573.tar.xz
mbuto-29c0bd7eb46b73cb254c7e25a32213f664077573.tar.zst
mbuto-29c0bd7eb46b73cb254c7e25a32213f664077573.zip
mbuto: support both mawk and gawk
Mawk requires escaping '+' when it appears in regexp, and gawk warns if '+' i escaped. Remove '+' before passing input to awk/gawk. Signed-off-by: Sevinj Aghayeva <sevinj.aghayeva@gmail.com>
-rwxr-xr-xmbuto2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbuto b/mbuto
index bc82b66..29adf06 100755
--- a/mbuto
+++ b/mbuto
@@ -260,7 +260,7 @@ profile_kselftests() {
__pattern="$(list_join "${__mods}" '^obj-\$\(' '\).*.o$' '|')"
__result="$(${BASENAME} -a -s .o \
$(${EGREP} -rn --include "*Makefile" ${__pattern} | \
- ${AWK} -F'+=' '/+=/ {print $2}'))"
+ ${TR} -d '+' | ${AWK} -F'=' '/=/ {print $2}'))"
__find_pattern="$(list_join "${__result}" '-name ' '.ko ' '-o ')"
KMODS="$(${FIND} "${MODDIR}" ${__find_pattern} | ${TR} '\n' ' ')"