diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2016-10-27 17:38:41 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2016-10-27 17:38:41 (GMT) |
commit | 5b44fb0d6530c4ff66a446afb69933aa8ffd014f (patch) | |
tree | e059f66d1f612e21fe9d83f9620c8715530353ec /funtools/filter/inc.sed | |
parent | da2e3d212171bbe64c1af39114fd067308656990 (diff) | |
parent | 23c7930d27fe11c4655e1291a07a821dbbaba78d (diff) | |
download | blt-5b44fb0d6530c4ff66a446afb69933aa8ffd014f.zip blt-5b44fb0d6530c4ff66a446afb69933aa8ffd014f.tar.gz blt-5b44fb0d6530c4ff66a446afb69933aa8ffd014f.tar.bz2 |
Merge commit '23c7930d27fe11c4655e1291a07a821dbbaba78d' as 'funtools'
Diffstat (limited to 'funtools/filter/inc.sed')
-rwxr-xr-x | funtools/filter/inc.sed | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/funtools/filter/inc.sed b/funtools/filter/inc.sed new file mode 100755 index 0000000..5318ca2 --- /dev/null +++ b/funtools/filter/inc.sed @@ -0,0 +1,13 @@ +: +NAME="$1" +sed ' +1i\ +static char *XXXX="\\n + +s#/\*.*\*/##g +s/"/\\"/g +s/\\n/\\\\n/g +s/$/\\n/ +$a\ +\" +' | sed "s/XXXX/$NAME/" | awk '{printf("%s", $0)};END{printf(";\n")}' |