apply-license

The apply-license shell script automatically applies copyright and license information to various kinds of source code and related original work. The intended use of apply-license is for open-sourcing code that was previously private, but other uses are also possible. apply-license is available under the GPL.

By default, this script requires GNU sed. However, if you have no GNU-compatible sed, you can use my sedit script just by changing a configuration variable in apply-license.

(One user experienced a bad bug a while back. His default shell was /bin/csh, his SHELL environment variable was thus set to /bin/csh, and the system /bin/sh was dash. I don't really understand this bug, so let me just encourage you not to do that.)