Mercurial > dropbear
view ifndef_wrapper.sh @ 1325:0b1162fbf1c6
remove duplicated include
author | Francois Perrad <francois.perrad@gadz.org> |
---|---|
date | Thu, 24 Mar 2016 12:36:56 +0100 |
parents | 750ec4ec4cbe |
children | 198e2ee0f4b1 |
line wrap: on
line source
#!/bin/sh # Wrap all "#define X Y" with a #ifndef X...#endif" sed -E 's/^(#define ([^ ]+) .*)/#ifndef \2\ \1\ #endif/'