diff options
author | Matt Johnston <matt@ucc.asn.au> | 2018-07-24 20:19:05 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2018-07-24 20:19:05 +0800 |
commit | aa68f1c26b629f710d3f84adb517d2832af266e3 (patch) | |
tree | b489fbbc1c3387b0365988fd9a2af4aad93591b2 | |
parent | a28210680c42f4252983c44e929425efbd1b9448 (diff) | |
download | dropbear-aa68f1c26b629f710d3f84adb517d2832af266e3.tar.gz |
avoid extended regex features to avoid caring about sed -r vs -E
-rwxr-xr-x | ifndef_wrapper.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ifndef_wrapper.sh b/ifndef_wrapper.sh index e2545d4..37a208d 100755 --- a/ifndef_wrapper.sh +++ b/ifndef_wrapper.sh @@ -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/' |