I would use a macro processing tool such as m4, which is widely available (it's standard on most Linux and *nix distributions, as it's used by autoconf, sendmail, et al). Convert the special header to a bunch of m4
macros and then apply this to all the source files.
Note that there are plenty of other alternatives to m4
, and scripting languages such as Perl could also be considered.