diff options
author | Sevinj Aghayeva <sevinj.aghayeva@gmail.com> | 2022-06-20 14:46:49 -0400 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-06-22 12:19:06 +0200 |
commit | 29c0bd7eb46b73cb254c7e25a32213f664077573 (patch) | |
tree | 68596dd0b61d810c619069ddccf1c534043ea079 | |
parent | fc2a8ed13cfc99aca1b3804008e30e224983b820 (diff) | |
download | mbuto-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-x | mbuto | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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' ' ')" |