Skip to content

Commit

Permalink
eclipsesym/cmdline2xml.sh: avoid egrep
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
keestux committed Mar 28, 2024
1 parent 6c6d2f9 commit 39cc420
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/tools/eclipsesym/cmdline2xml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=""
Expand All @@ -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}"
Expand Down

0 comments on commit 39cc420

Please sign in to comment.