From de3631e7fd7ad27acfc27c35ab160742e7ccdb00 Mon Sep 17 00:00:00 2001 From: Lukasz Gut Date: Fri, 13 Sep 2024 18:59:27 +0200 Subject: mbuto: Use grep -E instead of egrep On arch linux using `egrep` emits a warning: egrep: warning: egrep is obsolescent; using grep -E Use `grep -E` where previously `egrep` was called. Still keep `egrep` in PROGS list if someone wishes to call it inside of VM. Signed-off-by: Lukasz Gut Signed-off-by: Stefano Brivio --- mbuto | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mbuto b/mbuto index c2fffa0..b80ea78 100755 --- a/mbuto +++ b/mbuto @@ -242,7 +242,7 @@ profile_kselftests() { __pattern="$(list_join "${__colls}" '^' '$' '|')" __skip_targets="$(${AWK} '/^TARGETS/ { print $3}' ${__makefile} | \ - ${EGREP} -v "${__pattern}" | ${TR} '\n' ' ')" + ${GREP} -vE "${__pattern}" | ${TR} '\n' ' ')" ${RM} -rf "${__testpath}/kselftest_install" ${MAKE} SKIP_TARGETS="${__skip_targets}" -C ${__testpath} install \ @@ -262,7 +262,7 @@ profile_kselftests() { if [ ! -z "${__mods}" ]; then __pattern="$(list_join "${__mods}" '^obj-\$\(' '\).*.o$' '|')" __result="$(${BASENAME} -a -s .o \ - $(${EGREP} -rn --include "*Makefile" ${__pattern} | \ + $(${GREP} -rnE --include "*Makefile" ${__pattern} | \ ${TR} -d '+' | ${AWK} -F'=' '/=/ {print $2}'))" __find_pattern="$(list_join "${__result}" '-name ' '.ko ' '-o ')" -- cgit v1.2.3