summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2018-07-24 20:19:05 +0800
committerMatt Johnston <matt@ucc.asn.au>2018-07-24 20:19:05 +0800
commitaa68f1c26b629f710d3f84adb517d2832af266e3 (patch)
treeb489fbbc1c3387b0365988fd9a2af4aad93591b2
parenta28210680c42f4252983c44e929425efbd1b9448 (diff)
downloaddropbear-aa68f1c26b629f710d3f84adb517d2832af266e3.tar.gz
avoid extended regex features to avoid caring about sed -r vs -E
-rwxr-xr-xifndef_wrapper.sh2
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/'