aboutgitcode
diff options
context:
space:
mode:
authorLukasz Gut <lgut@lgut.eu>2024-09-13 18:59:27 +0200
committerStefano Brivio <sbrivio@redhat.com>2024-09-17 18:24:09 +0200
commitde3631e7fd7ad27acfc27c35ab160742e7ccdb00 (patch)
tree6ebaa545236b150de64795688554e2567a8dfd35
parentebc3837b0a28cfb1c337cba3172b6ca11b1fba53 (diff)
downloadmbuto-master.tar
mbuto-master.tar.gz
mbuto-master.tar.bz2
mbuto-master.tar.lz
mbuto-master.tar.xz
mbuto-master.tar.zst
mbuto-master.zip
mbuto: Use grep -E instead of egrepHEADmaster
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 <lgut@lgut.eu> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rwxr-xr-xmbuto4
1 files 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 ')"