1
0
mirror of https://github.com/clearml/dropbear synced 2025-02-26 05:38:53 +00:00
dropbear/ifndef_wrapper.sh

8 lines
129 B
Bash
Raw Permalink Normal View History

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