view ifndef_wrapper.sh @ 1624:1f3fb83b0524

Remove some cluttering TRACE printouts
author Matt Johnston <matt@ucc.asn.au>
date Wed, 14 Nov 2018 22:52:04 +0800
parents 0196f4f83fee
children
line wrap: on
line source

#!/bin/sh

# Wrap all "#define X Y" with a #ifndef X...#endif"

sed 's/^\( *#define \([^ ][^ ]*\) .*\)/#ifndef \2\
\1\
#endif/'