While my recent patch to prepend lines to the copied source files is functional, it disturbs the line numbering between the original and the copy. That makes development more awkward than necessary, as it is the copy that generally gets compiled first and emits compiler errors.
This uses sed to alter the first line, and also emits better emacs mode setting, getting both C++ mode and read-only mode.
Now the header name is missing, which is inconsistent with other headers. Is this intentional?