text2macro.pl - convert text files into C string-literal macro definitions
text2macro [options] file ... > output.h
--prefix=S - add prefix S to the names of the macros --name=S - use S as the macro name (assumes only one file) --strip=S - don't include lines that match perl regex S
Reads one or more text files and outputs a corresponding series of C pre-processor macro definitions. Each macro defines a string literal that contains the contents of the corresponding text file. The basename of the text file as capitalized and used as the name of the macro, along with an optional prefix.