view ifndef_wrapper.sh @ 1650:009d52ae26d3 DROPBEAR_2019.78

Bump to 2019.78
author Matt Johnston <matt@ucc.asn.au>
date Wed, 27 Mar 2019 21:47:34 +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/'