Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
ec0b0b40
Commit
ec0b0b40
authored
May 28, 2013
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused check.copyright.py
parent
77c7cdd7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
61 deletions
+0
-61
scripts/check.copyright.py
scripts/check.copyright.py
+0
-61
No files found.
scripts/check.copyright.py
deleted
100755 → 0
View file @
77c7cdd7
#!/usr/bin/python
#indent "Copyright (c) Tokutek Inc. All rights reserved."
# check files for tokutek copyright. exit 0 if all files have the copyright
# otherwise, exit 1
import
sys
import
os
import
re
def
checkcopyright
(
f
,
verbose
):
cmd
=
"egrep -q
\
"
Copyright.*Tokutek
\
"
"
+
f
exitcode
=
os
.
system
(
cmd
)
if
exitcode
!=
0
and
verbose
:
print
f
return
exitcode
def
checkdir
(
d
,
verbose
):
nocopyright
=
0
for
dirpath
,
dirnames
,
filenames
in
os
.
walk
(
d
):
for
f
in
filenames
:
fullname
=
dirpath
+
"/"
+
f
# skip svn metadata
matches
=
re
.
match
(
".*
\
.s
v
n.*"
,
fullname
)
if
matches
is
None
:
nocopyright
+=
checkcopyright
(
fullname
,
verbose
)
return
nocopyright
def
usage
():
print
"copyright.check [--help] [--verbose] DIRS"
print
" default DIRS is
\
"
.
\
"
"
return
1
def
main
():
verbose
=
0
nocopyright
=
0
dirname
=
"."
try
:
if
len
(
sys
.
argv
)
<=
1
:
nocopyright
+=
checkdir
(
dirname
,
verbose
)
else
:
ndirs
=
0
for
arg
in
sys
.
argv
[
1
:]:
if
arg
==
"-h"
or
arg
==
"--help"
:
return
usage
()
elif
arg
==
"-v"
or
arg
==
"--verbose"
:
verbose
+=
1
else
:
ndirs
+=
1
dirname
=
arg
nocopyright
+=
checkdir
(
dirname
,
verbose
)
if
ndirs
==
0
:
nocopyright
+=
checkdir
(
dirname
,
verbose
)
except
:
return
1
if
nocopyright
>
0
:
exitcode
=
1
else
:
exitcode
=
0
return
exitcode
sys
.
exit
(
main
())
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