From 39cc42014f06bf44f66c3bac271fccc806202e2c Mon Sep 17 00:00:00 2001 From: Kees Bakker Date: Thu, 28 Mar 2024 22:08:26 +0100 Subject: [PATCH] eclipsesym/cmdline2xml.sh: avoid egrep The egrep and fgrep commands have been deprecated since 2007. Beginning with GNU Grep 3.8, calling these commands will now issue a warning to the user that instead they should use grep -E and grep -F, respectively. --- dist/tools/eclipsesym/cmdline2xml.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/tools/eclipsesym/cmdline2xml.sh b/dist/tools/eclipsesym/cmdline2xml.sh index 67c934f91df0..db6c7f00067e 100755 --- a/dist/tools/eclipsesym/cmdline2xml.sh +++ b/dist/tools/eclipsesym/cmdline2xml.sh @@ -55,7 +55,7 @@ ECLIPSE_PROJECT_NAME='RIOT' GCCCOMMANDLINE=$(cat) # Find all includes -INCLUDES=$(${ECHO} "${GCCCOMMANDLINE}" | sed -e 's/ /\n/g' | egrep '^-I' | cut -c3-) +INCLUDES=$(${ECHO} "${GCCCOMMANDLINE}" | sed -e 's/ /\n/g' | grep -E '^-I' | cut -c3-) # Parse and rewrite to project relative paths INCLUDES_REL="" @@ -66,7 +66,7 @@ for p in ${INCLUDES}; do done # Grab macro definitions -MACROS=$(${ECHO} "${GCCCOMMANDLINE}" | sed -e 's/ /\n/g' | egrep '^-D' | cut -c3-) +MACROS=$(${ECHO} "${GCCCOMMANDLINE}" | sed -e 's/ /\n/g' | grep -E '^-D' | cut -c3-) # Output ${ECHO} "${XML_HEADER}"