You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



License Boilerplate

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
(.in files)
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
MPL mpl-c mpl-sh mpl-html mpl-txt mpl-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 <ahonks@nabscorp.com>
  Nexus Brill <nexus@eurafoot.fr>

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 *****

Notes

  • 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.