diff ifndef_wrapper.sh @ 1521:198e2ee0f4b1

- Fix dependencies and remove old default_options.h from version control - Rename default_options.h.in -> default_options.h, and default_options.h -> default_options_guard.h - Fix newlines in default_options.h
author Matt Johnston <matt@ucc.asn.au>
date Mon, 19 Feb 2018 22:16:50 +0800
parents 750ec4ec4cbe
children 0196f4f83fee
line wrap: on
line diff
--- a/ifndef_wrapper.sh	Sun Feb 18 23:48:32 2018 +0800
+++ b/ifndef_wrapper.sh	Mon Feb 19 22:16:50 2018 +0800
@@ -2,6 +2,6 @@
 
 # Wrap all "#define X Y" with a #ifndef X...#endif"
 
-sed -E 's/^(#define ([^ ]+) .*)/#ifndef \2\
+sed -E 's/^( *#define ([^ ]+) .*)/#ifndef \2\
 \1\
 #endif/'