Mercurial > dropbear
view ifndef_wrapper.sh @ 1649:4b01f4826a29
Fix regression where TTY modes weren't reset for client
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 24 Mar 2019 20:41:02 +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/'