When adding license blocks to new files to be checked in to the Mozilla source tree, always use the appropriate one of the following templates, filled in as explained below but otherwise unaltered. They are carefully formatted so that any future updates to the boilerplate will be easy to make.
|/* */ comments||# comments||<-- --> comments||Plain text||dnl comments
|MPL/ LGPL/ GPL tri-license||mpl-tri-license-c||mpl-tri-license-sh||mpl-tri-license-html||mpl-tri-license-txt||mpl-tri-license-m4|
The blanks should be filled as in the following example (which omits some of the invariant text):
***** BEGIN LICENSE BLOCK ***** Version: MPL 1.1/LGPL 2.1/GPL 2.0 The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with ... for the specific language governing rights and limitations under the License. The Original Code is the Mozilla Nullifier Module. The Initial Developer of the Original Code is North American Boot and Shoe Corporation (NABS). Portions created by the Initial Developer are Copyright (C) 2007 the Initial Developer. All Rights Reserved. Contributor(s): Amos Honks <firstname.lastname@example.org> Nexus Brill <email@example.com> Alternatively, the contents of this file may be used under the terms of either of the GNU General Public License Version 2 or later (the "GPL"), ... the terms of any one of the MPL, the GPL or the LGPL. ***** END LICENSE BLOCK *****
- The "LICENSE BLOCK" strings facilitate automated checking of source files to verify that they are licensed correctly.
- The "The Original Code is" line should be filled in with a short description of the code's function. If uninspired, use "mozilla.org code.".
- The "Initial Developer" is the copyright holder, which may be your employer rather than you. In this case, add yourself as a Contributor.
- Contributor names should be indented two spaces from the "Contributors:" line.
Licensing questions? Ask in mozilla.legal.