diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2013-08-14 17:19:42 +0200 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2013-08-14 17:19:42 +0200 |
commit | a6780eed71545aef0698c765949b105e40fa3451 (patch) | |
tree | 478973a2f56bb47cdee19c8f5cd451b3c08c4afb /template/en/default/extensions | |
parent | 85599594b87a6404bd1fb1f36d3cb5272272e028 (diff) | |
download | bugzilla-a6780eed71545aef0698c765949b105e40fa3451.tar.gz bugzilla-a6780eed71545aef0698c765949b105e40fa3451.tar.xz |
Replace the MPL 1.1 license by the MPL 2.0 one in all files, and add it to files which miss one
https://bugzilla.mozilla.org/show_bug.cgi?id=680131
Diffstat (limited to 'template/en/default/extensions')
-rw-r--r-- | template/en/default/extensions/config.pm.tmpl | 27 | ||||
-rw-r--r-- | template/en/default/extensions/extension.pm.tmpl | 29 | ||||
-rw-r--r-- | template/en/default/extensions/hook-readme.txt.tmpl | 24 | ||||
-rw-r--r-- | template/en/default/extensions/license.txt.tmpl | 49 | ||||
-rw-r--r-- | template/en/default/extensions/name-readme.txt.tmpl | 24 | ||||
-rw-r--r-- | template/en/default/extensions/util.pm.tmpl | 29 | ||||
-rw-r--r-- | template/en/default/extensions/web-readme.txt.tmpl | 24 |
7 files changed, 48 insertions, 158 deletions
diff --git a/template/en/default/extensions/config.pm.tmpl b/template/en/default/extensions/config.pm.tmpl index 6997ec178..07ac83a41 100644 --- a/template/en/default/extensions/config.pm.tmpl +++ b/template/en/default/extensions/config.pm.tmpl @@ -1,33 +1,20 @@ -[%# -*- mode: perl -*- %] -[%# 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 the License. You may obtain a copy of - # the License at http://www.mozilla.org/MPL/ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. # - # Software distributed under the License is distributed on an "AS - # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - # implied. See the License for the specific language governing - # rights and limitations under the License. - # - # The Original Code is the Bugzilla Bug Tracking System. - # - # The Initial Developer of the Original Code is Everything Solved, Inc. - # Portions created by the Initial Developer are Copyright (C) 2009 the - # Initial Developer. All Rights Reserved. - # - # Contributor(s): - # Max Kanat-Alexander <mkanat@bugzilla.org> + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. #%] [%# INTERFACE: # name: string; The name of the extension. #%] -[% PROCESS global/variables.none.tmpl %] - [% PROCESS extensions/license.txt.tmpl %] package B[% %]ugzilla::Extension::[% name %]; + +use 5.10.1; use strict; use constant NAME => '[% name %]'; diff --git a/template/en/default/extensions/extension.pm.tmpl b/template/en/default/extensions/extension.pm.tmpl index 249227103..ebeb73719 100644 --- a/template/en/default/extensions/extension.pm.tmpl +++ b/template/en/default/extensions/extension.pm.tmpl @@ -1,35 +1,22 @@ -[%# -*- mode: perl -*- %] -[%# 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 the License. You may obtain a copy of - # the License at http://www.mozilla.org/MPL/ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. # - # Software distributed under the License is distributed on an "AS - # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - # implied. See the License for the specific language governing - # rights and limitations under the License. - # - # The Original Code is the Bugzilla Bug Tracking System. - # - # The Initial Developer of the Original Code is Everything Solved, Inc. - # Portions created by the Initial Developer are Copyright (C) 2009 the - # Initial Developer. All Rights Reserved. - # - # Contributor(s): - # Max Kanat-Alexander <mkanat@bugzilla.org> + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. #%] [%# INTERFACE: # name: string; The name of the extension. #%] -[% PROCESS global/variables.none.tmpl %] - [% PROCESS extensions/license.txt.tmpl %] package B[% %]ugzilla::Extension::[% name %]; + +use 5.10.1; use strict; -use base qw(B[% %]ugzilla::Extension); +use parent qw(B[% %]ugzilla::Extension); # This code for this is in [% path %]/lib/Util.pm use B[% %]ugzilla::Extension::[% name %]::Util; diff --git a/template/en/default/extensions/hook-readme.txt.tmpl b/template/en/default/extensions/hook-readme.txt.tmpl index efceec136..63e09e419 100644 --- a/template/en/default/extensions/hook-readme.txt.tmpl +++ b/template/en/default/extensions/hook-readme.txt.tmpl @@ -1,25 +1,11 @@ -[%# 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 the License. You may obtain a copy of - # the License at http://www.mozilla.org/MPL/ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. # - # Software distributed under the License is distributed on an "AS - # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - # implied. See the License for the specific language governing - # rights and limitations under the License. - # - # The Original Code is the Bugzilla Bug Tracking System. - # - # The Initial Developer of the Original Code is Everything Solved, Inc. - # Portions created by the Initial Developer are Copyright (C) 2009 the - # Initial Developer. All Rights Reserved. - # - # Contributor(s): - # Max Kanat-Alexander <mkanat@bugzilla.org> + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. #%] -[% PROCESS global/variables.none.tmpl %] - Template hooks go in this directory. Template hooks are called in normal [%+ terms.Bugzilla %] templates like [[% '%' %] Hook.process('some-hook') %]. More information about them can be found in the documentation of diff --git a/template/en/default/extensions/license.txt.tmpl b/template/en/default/extensions/license.txt.tmpl index 964e07505..6acde01e0 100644 --- a/template/en/default/extensions/license.txt.tmpl +++ b/template/en/default/extensions/license.txt.tmpl @@ -1,47 +1,18 @@ -[%# -*- mode: perl -*- %] -[%# 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 the License. You may obtain a copy of - # the License at http://www.mozilla.org/MPL/ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. # - # Software distributed under the License is distributed on an "AS - # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - # implied. See the License for the specific language governing - # rights and limitations under the License. - # - # The Original Code is the Bugzilla Bug Tracking System. - # - # The Initial Developer of the Original Code is Everything Solved, Inc. - # Portions created by the Initial Developer are Copyright (C) 2009 the - # Initial Developer. All Rights Reserved. - # - # Contributor(s): - # Max Kanat-Alexander <mkanat@bugzilla.org> + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. #%] [%# INTERFACE: # name: string; The name of the extension. #%] -[% PROCESS global/variables.none.tmpl %] - -# -*- Mode: perl; indent-tabs-mode: nil -*- -# -# 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 the License. You may obtain a copy of -# the License at http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS -# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -# implied. See the License for the specific language governing -# rights and limitations under the License. -# -# The Original Code is the [% name %] [%+ terms.Bugzilla %] Extension. -# -# The Initial Developer of the Original Code is YOUR NAME -# Portions created by the Initial Developer are Copyright (C) [% year %] the -# Initial Developer. All Rights Reserved. +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. # -# Contributor(s): -# YOUR NAME <YOUR EMAIL ADDRESS> +# This Source Code Form is "Incompatible With Secondary Licenses", as +# defined by the Mozilla Public License, v. 2.0. diff --git a/template/en/default/extensions/name-readme.txt.tmpl b/template/en/default/extensions/name-readme.txt.tmpl index 6d25c839e..5403bab7f 100644 --- a/template/en/default/extensions/name-readme.txt.tmpl +++ b/template/en/default/extensions/name-readme.txt.tmpl @@ -1,25 +1,11 @@ -[%# 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 the License. You may obtain a copy of - # the License at http://www.mozilla.org/MPL/ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. # - # Software distributed under the License is distributed on an "AS - # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - # implied. See the License for the specific language governing - # rights and limitations under the License. - # - # The Original Code is the Bugzilla Bug Tracking System. - # - # The Initial Developer of the Original Code is Everything Solved, Inc. - # Portions created by the Initial Developer are Copyright (C) 2009 the - # Initial Developer. All Rights Reserved. - # - # Contributor(s): - # Max Kanat-Alexander <mkanat@bugzilla.org> + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. #%] -[% PROCESS global/variables.none.tmpl %] - Normal templates go in this directory. You can load them in your code like this: diff --git a/template/en/default/extensions/util.pm.tmpl b/template/en/default/extensions/util.pm.tmpl index 32076a665..3493007f4 100644 --- a/template/en/default/extensions/util.pm.tmpl +++ b/template/en/default/extensions/util.pm.tmpl @@ -1,35 +1,22 @@ -[%# -*- mode: perl -*- %] -[%# 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 the License. You may obtain a copy of - # the License at http://www.mozilla.org/MPL/ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. # - # Software distributed under the License is distributed on an "AS - # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - # implied. See the License for the specific language governing - # rights and limitations under the License. - # - # The Original Code is the Bugzilla Bug Tracking System. - # - # The Initial Developer of the Original Code is Everything Solved, Inc. - # Portions created by the Initial Developer are Copyright (C) 2009 the - # Initial Developer. All Rights Reserved. - # - # Contributor(s): - # Max Kanat-Alexander <mkanat@bugzilla.org> + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. #%] [%# INTERFACE: # name: string; The name of the extension. #%] -[% PROCESS global/variables.none.tmpl %] - [% PROCESS extensions/license.txt.tmpl %] package B[% %]ugzilla::Extension::[% name %]::Util; + +use 5.10.1; use strict; -use base qw(Exporter); +use parent qw(Exporter); our @EXPORT = qw( ); diff --git a/template/en/default/extensions/web-readme.txt.tmpl b/template/en/default/extensions/web-readme.txt.tmpl index 55e593914..41dcd8edf 100644 --- a/template/en/default/extensions/web-readme.txt.tmpl +++ b/template/en/default/extensions/web-readme.txt.tmpl @@ -1,25 +1,11 @@ -[%# 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 the License. You may obtain a copy of - # the License at http://www.mozilla.org/MPL/ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. # - # Software distributed under the License is distributed on an "AS - # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - # implied. See the License for the specific language governing - # rights and limitations under the License. - # - # The Original Code is the Bugzilla Bug Tracking System. - # - # The Initial Developer of the Original Code is Everything Solved, Inc. - # Portions created by the Initial Developer are Copyright (C) 2010 the - # Initial Developer. All Rights Reserved. - # - # Contributor(s): - # Max Kanat-Alexander <mkanat@bugzilla.org> + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. #%] -[% PROCESS global/variables.none.tmpl %] - Web-accessible files, like JavaScript, CSS, and images go in this directory. You can reference them directly in your HTML. For example, if you have a file called "style.css" and your extension is called |