dropbear/ifndef_wrapper.sh
2016-05-04 15:33:40 +02:00

8 lines
122 B
Bash
Executable File

#!/bin/sh
# Wrap all "#define X Y" with a #ifndef X...#endif"
sed -E 's/^(#define ([^ ]+) .*)/#ifndef \2\
\1\
#endif/'