From 29c0bd7eb46b73cb254c7e25a32213f664077573 Mon Sep 17 00:00:00 2001 From: Sevinj Aghayeva Date: Mon, 20 Jun 2022 14:46:49 -0400 Subject: 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 --- mbuto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' ' ')" -- cgit v1.2.3