mirror of
https://github.com/clearml/dropbear
synced 2025-04-28 01:41:22 +00:00
avoid extended regex features to avoid caring about sed -r vs -E
This commit is contained in:
parent
64bd345a5d
commit
5ca12d8332
@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
# Wrap all "#define X Y" with a #ifndef X...#endif"
|
# Wrap all "#define X Y" with a #ifndef X...#endif"
|
||||||
|
|
||||||
sed -E 's/^( *#define ([^ ]+) .*)/#ifndef \2\
|
sed 's/^\( *#define \([^ ][^ ]*\) .*\)/#ifndef \2\
|
||||||
\1\
|
\1\
|
||||||
#endif/'
|
#endif/'
|
||||||
|
Loading…
Reference in New Issue
Block a user