Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
BIND
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
586
Issues
586
List
Boards
Labels
Service Desk
Milestones
Merge Requests
112
Merge Requests
112
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
BIND
Commits
168cf0ed
Commit
168cf0ed
authored
Apr 28, 2016
by
Evan Hunt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[master] fix update_copyrights to deal with python modules correctly
parent
86f22149
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
12 deletions
+21
-12
util/copyrights
util/copyrights
+9
-9
util/update_copyrights
util/update_copyrights
+12
-3
No files found.
util/copyrights
View file @
168cf0ed
...
...
@@ -369,25 +369,25 @@
./bin/python/dnssec-checkds.8 MAN DOCBOOK
./bin/python/dnssec-checkds.docbook SGML 2012,2013,2014,2015
./bin/python/dnssec-checkds.html HTML DOCBOOK
./bin/python/dnssec-checkds.py.in PYTHON 2012,2013,2014,2015,2016
./bin/python/dnssec-checkds.py.in PYTHON
-BIN
2012,2013,2014,2015,2016
./bin/python/dnssec-coverage.8 MAN DOCBOOK
./bin/python/dnssec-coverage.docbook SGML 2013,2014,2015,2016
./bin/python/dnssec-coverage.html HTML DOCBOOK
./bin/python/dnssec-coverage.py.in PYTHON 2013,2014,2015,2016
./bin/python/dnssec-coverage.py.in PYTHON
-BIN
2013,2014,2015,2016
./bin/python/dnssec-keymgr.docbook SGML 2016
./bin/python/dnssec-keymgr.py.in PYTHON 2016
./bin/python/dnssec-keymgr.py.in PYTHON
-BIN
2016
./bin/python/isc/.gitignore X 2016
./bin/python/isc/Makefile.in MAKE 2016
./bin/python/isc/__init__.py PYTHON 2016
./bin/python/isc/checkds.py PYTHON
2016
./bin/python/isc/coverage.py PYTHON 2016
./bin/python/isc/dnskey.py PYTHON 2016
./bin/python/isc/eventlist.py PYTHON 2016
./bin/python/isc/checkds.py PYTHON
2012,2013,2014,2015,
2016
./bin/python/isc/coverage.py PYTHON 201
3,2014,2015,201
6
./bin/python/isc/dnskey.py PYTHON 201
3,2014,2015,201
6
./bin/python/isc/eventlist.py PYTHON 201
5,201
6
./bin/python/isc/keydict.py PYTHON 2016
./bin/python/isc/keyevent.py PYTHON 2016
./bin/python/isc/keyevent.py PYTHON 201
3,2014,2015,201
6
./bin/python/isc/keymgr.py PYTHON 2016
./bin/python/isc/keyseries.py PYTHON 2016
./bin/python/isc/keyzone.py PYTHON 2016
./bin/python/isc/keyzone.py PYTHON 201
3,2014,2015,201
6
./bin/python/isc/policy.py PYTHON 2016
./bin/python/isc/tests/Makefile.in MAKE 2016
./bin/python/isc/tests/dnskey_test.py PYTHON 2016
...
...
util/update_copyrights
View file @
168cf0ed
...
...
@@ -182,6 +182,7 @@ foreach $file (keys %file_types) {
$zone_comment
=
0
;
$man_comment
=
0
;
$python_comment
=
0
;
$python_bin_comment
=
0
;
$start_comment
=
"";
$end_comment
=
"";
$first
=
"";
...
...
@@ -193,6 +194,11 @@ foreach $file (keys %file_types) {
}
elsif
(
$type
=~
/^(SH|PERL|TCL|MAKE|CONF-SH|RNC)$/
)
{
$shell_comment
=
1
;
$prefix
=
"
#
";
}
elsif
(
$type
=~
/^PYTHON-BIN$/
)
{
$python_bin_comment
=
1
;
$start_comment
=
"
############################################################################
\n
";
$prefix
=
"
#
";
$end_comment
=
"
############################################################################
\n
"
}
elsif
(
$type
=~
/^PYTHON$/
)
{
$python_comment
=
1
;
$start_comment
=
"
############################################################################
\n
";
...
...
@@ -271,12 +277,15 @@ foreach $file (keys %file_types) {
}
else
{
$first
=
$_
;
}
}
elsif
(
$python_comment
)
{
if
(
/^\#\!/
)
{
}
elsif
(
$python_comment
||
$python_bin_comment
)
{
if
(
$python_bin_comment
&&
/^\#\!/
)
{
$before_copyright
=
"
$_
";
$_
=
<
SOURCE
>
;
$_
=
<
SOURCE
>
if
$_
eq
"
#
\n
";
$_
=
<
SOURCE
>
if
$_
eq
"
############################################################################
\n
";
}
elsif
(
$python_comment
&&
/^\#/
)
{
$_
=
<
SOURCE
>
if
$_
eq
"
#
\n
";
$_
=
<
SOURCE
>
if
$_
eq
"
############################################################################
\n
";
}
if
(
/^\#/
)
{
if
(
$_
!~
/[Cc]opyright/
)
{
...
...
@@ -593,7 +602,7 @@ foreach $file (keys %file_types) {
}
my
(
$start
,
$end
);
if
(
$type
=~
/^PYTHON$/
)
{
if
(
$type
=~
/^PYTHON
(|-BIN)
$/
)
{
(
$start
=
$prefix
)
=~
s/\s*\n//
;
$end
=
"
\n
";
}
elsif
(
$start_comment
ne
"")
{
...
...
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