gen_constants: simplify grep by using ERE by default
Rather than use a BRE and escape specific chars up to ERE, default
to ERE by using the -E flag and drop all the \ chars. This makes
the code more readable.
Change-Id: I53342db748f1418194e87b519324f14eb70858c1
diff --git a/gen_constants.sh b/gen_constants.sh
index 8b311e3..9b2310b 100755
--- a/gen_constants.sh
+++ b/gen_constants.sh
@@ -55,7 +55,7 @@
$(echo "$INCLUDES" | \
${CC} -dD - -E | \
grep '^#define [[:upper:]][[:upper:]0-9_]* ' | \
- grep -v '\(SIGRTMAX\|SIGRTMIN\|SIG_\|NULL\)' | \
+ grep -Ev '(SIGRTMAX|SIGRTMIN|SIG_|NULL)' | \
sort | \
uniq | \
sed -e "${SED_MULTILINE}")