Skip to content

Commit

Permalink
Merge pull request #20522 from keestux/fix/eclipsesym-script
Browse files Browse the repository at this point in the history
Avoid using egrep
  • Loading branch information
dylad authored Mar 29, 2024
2 parents 3e2ab59 + 39cc420 commit 48a8e65
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 48a8e65

Please sign in to comment.