Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
b4dc58b6
Commit
b4dc58b6
authored
Jan 20, 2012
by
Matt Selsky
Committed by
Frédéric Buclin
Jan 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 718397: New extensions should be created using the MPL 2.0 license
r/a=LpSolit
parent
588cb977
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
25 deletions
+7
-25
create.pl
extensions/create.pl
+1
-4
license.txt.tmpl
template/en/default/extensions/license.txt.tmpl
+5
-19
messages.html.tmpl
template/en/default/global/messages.html.tmpl
+1
-2
No files found.
extensions/create.pl
View file @
b4dc58b6
...
@@ -14,7 +14,6 @@ use Bugzilla::Error;
...
@@ -14,7 +14,6 @@ use Bugzilla::Error;
use
Bugzilla::
Util
qw(get_text)
;
use
Bugzilla::
Util
qw(get_text)
;
use
File::
Path
qw(mkpath)
;
use
File::
Path
qw(mkpath)
;
use
DateTime
;
my
$base_dir
=
bz_locations
()
->
{
'extensionsdir'
};
my
$base_dir
=
bz_locations
()
->
{
'extensionsdir'
};
...
@@ -34,10 +33,8 @@ foreach my $path (qw(lib web template/en/default/hook),
...
@@ -34,10 +33,8 @@ foreach my $path (qw(lib web template/en/default/hook),
mkpath
(
"$extension_dir/$path"
)
||
die
"$extension_dir/$path: $!"
;
mkpath
(
"$extension_dir/$path"
)
||
die
"$extension_dir/$path: $!"
;
}
}
my
$year
=
DateTime
->
now
()
->
year
;
my
$template
=
Bugzilla
->
template
;
my
$template
=
Bugzilla
->
template
;
my
$vars
=
{
year
=>
$year
,
name
=>
$name
,
path
=>
$extension_dir
};
my
$vars
=
{
name
=>
$name
,
path
=>
$extension_dir
};
my
%
create_files
=
(
my
%
create_files
=
(
'config.pm.tmpl'
=>
'Config.pm'
,
'config.pm.tmpl'
=>
'Config.pm'
,
'extension.pm.tmpl'
=>
'Extension.pm'
,
'extension.pm.tmpl'
=>
'Extension.pm'
,
...
...
template/en/default/extensions/license.txt.tmpl
View file @
b4dc58b6
...
@@ -10,23 +10,9 @@
...
@@ -10,23 +10,9 @@
# name: string; The name of the extension.
# name: string; The name of the extension.
#%]
#%]
# -*- Mode: perl; indent-tabs-mode: nil -*-
# 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/.
#
#
# The contents of this file are subject to the Mozilla Public
# This Source Code Form is "Incompatible With Secondary Licenses", as
# License Version 1.1 (the "License"); you may not use this file
# defined by the Mozilla Public License, v. 2.0.
# 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.
#
# Contributor(s):
# YOUR NAME <YOUR EMAIL ADDRESS>
template/en/default/global/messages.html.tmpl
View file @
b4dc58b6
...
@@ -274,8 +274,7 @@
...
@@ -274,8 +274,7 @@
[% ELSIF message_tag == "extension_created" %]
[% ELSIF message_tag == "extension_created" %]
An extension named [% name FILTER html %] has been created
An extension named [% name FILTER html %] has been created
in [% path FILTER html %]. Make sure you change "YOUR NAME" and
in [% path FILTER html %].
"YOUR EMAIL ADDRESS" in the code to your name and your email address.
[% ELSIF message_tag == "field_value_created" %]
[% ELSIF message_tag == "field_value_created" %]
[% title = "New Field Value Created" %]
[% title = "New Field Value Created" %]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment