You are viewing information archived from on 2015-08-27.

License Boilerplate

This document is now obsolete. Please see the corresponding page for the MPL 2.0.

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
Public Domain pd-c pd-sh pd-html pd-txt pd-m4

The blanks should be filled as in the following example (which omits some of the invariant text):

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

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.

  Amos Honks <>
  Nexus Brill <>

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.



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