Caveat: As you may have noticed, I am not a lawyer! Nothing in this posting is actually advice, and you should not treat it as such.
Here's the deal. As I was putting together my release of BBB, I noticed that it had never been marked up properly with a license. As I was doing so, I decided it was time to write a script to automate this process more completely than I previously had…
The way I mark software up (again, I am not a lawyer) is to put at the top of each textfile a comment containing a copyright notice and a reference to the license, which I place at the end of the file. Thus, the top of a C file might look something like
/* * Copyright (c) 2006 Bart Massey * ALL RIGHTS RESERVED * Please see the end of this file for licensing. */
Of course, different kinds of files have different comment formats. I also put the copyright notice and license in a file called COPYING in the distribution directory.
My apply-license.sh script uses my sedit script, posted previously, to pull the copyright and license out of the COPYING file and apply it to various source files in the distribution directory. The script so far only marks up a few kinds of common files. It's easily extensible to handle other kinds of files by anyone with sed skills, though. The source is at BartForge, and contains a manual page and sample copying file.
Enjoy.
Updated 2007/01/03: fixed a few bugs in the script, got rid of the stale attached copy, pointed the link at gitweb so that folks could click to it.
Updated 2007/12/3: the link now points at BartForge. (B)