avoid extended regex features to avoid caring about sed -r vs -E

This commit is contained in:
Matt Johnston 2018-07-24 20:19:05 +08:00
parent 64bd345a5d
commit 5ca12d8332

View File

@ -2,6 +2,6 @@
# Wrap all "#define X Y" with a #ifndef X...#endif"
sed -E 's/^( *#define ([^ ]+) .*)/#ifndef \2\
sed 's/^\( *#define \([^ ][^ ]*\) .*\)/#ifndef \2\
\1\
#endif/'