Quote Originally Posted by dvmorris View Post
Does anyone have any tips for automating the actual process of sticking license information into the source code?
You can try something like this:
bash Code:
  1. LICENCE=/.../licence
  2. for f in `find ...`; do
  3. cat $LICENCE $f > $f.x
  4. mv $f.x $f
  5. done
To copy to clipboard, switch view to plain text mode 
(make sure you make a backup of your sources before trying it).

Quote Originally Posted by dvmorris View Post
Also, is there a general tutorial for which files to put where and exactly what to say where in each directory of a project, or is that important? I would really like to do this whole licensing thing right, but I'm not sure where to start...
You have to add a comment in every source file you wrote with information about copyright and licence (see the link in previous post for exact text) and you have to add a file with full licence text to your sources (it's usually named COPYING or LICENCE).