diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2018-11-26 21:59:04 +0000 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gcc.gnu.org> | 2018-11-26 21:59:04 +0000 |
commit | 80de5ef9c1070e6dcbf8fd5cae93b06edc36d08a (patch) | |
tree | 6bb608b803bfa336c462dc8cf72690ea39faceec | |
parent | 1e4cc1d4b097f346b4cda611782fe83eda0df18f (diff) | |
download | gcc-80de5ef9c1070e6dcbf8fd5cae93b06edc36d08a.tar.gz |
Add filters for D language sources to contrib/update-copyright.py
2018-11-26 Iain Buclaw <ibuclaw@gdcproject.org>
* update-copyright.py (TestsuiteFilter): Skip .d tests.
(LibPhobosFilter): Add filter for upstream D sources.
(GCCCopyright): Add D Language Foundation as external author.
(GCCCmdLine): Add libphobos.
From-SVN: r266491
-rw-r--r-- | contrib/ChangeLog | 7 | ||||
-rwxr-xr-x | contrib/update-copyright.py | 23 |
2 files changed, 30 insertions, 0 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog index 64dcdfcb76a..e6296c858d2 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,10 @@ +2018-11-26 Iain Buclaw <ibuclaw@gdcproject.org> + + * update-copyright.py (TestsuiteFilter): Skip .d tests. + (LibPhobosFilter): Add filter for upstream D sources. + (GCCCopyright): Add D Language Foundation as external author. + (GCCCmdLine): Add libphobos. + 2018-11-19 Martin Liska <mliska@suse.cz> * check_GNU_style_lib.py: Detect mixed usage diff --git a/contrib/update-copyright.py b/contrib/update-copyright.py index 9295c6b8a30..67c21cab23c 100755 --- a/contrib/update-copyright.py +++ b/contrib/update-copyright.py @@ -574,6 +574,7 @@ class TestsuiteFilter (GenericFilter): '.c', '.C', '.cc', + '.d', '.h', '.hs', '.f', @@ -616,6 +617,25 @@ class LibGCCFilter (GenericFilter): 'soft-fp', ]) +class LibPhobosFilter (GenericFilter): + def __init__ (self): + GenericFilter.__init__ (self) + + self.skip_files |= set ([ + # Source module imported from upstream. + 'object.d', + ]) + + self.skip_dirs |= set ([ + # Contains sources imported from upstream. + 'core', + 'etc', + 'gc', + 'gcstub', + 'rt', + 'std', + ]) + class LibStdCxxFilter (GenericFilter): def __init__ (self): GenericFilter.__init__ (self) @@ -682,6 +702,7 @@ class GCCCopyright (Copyright): self.add_external_author ('Silicon Graphics') self.add_external_author ('Stephen L. Moshier') self.add_external_author ('Sun Microsystems, Inc. All rights reserved.') + self.add_external_author ('The D Language Foundation, All Rights Reserved') self.add_external_author ('The Go Authors. All rights reserved.') self.add_external_author ('The Go Authors. All rights reserved.') self.add_external_author ('The Go Authors.') @@ -720,6 +741,7 @@ class GCCCmdLine (CmdLine): self.add_dir ('libitm') self.add_dir ('libobjc') # liboffloadmic is imported from upstream. + self.add_dir ('libphobos', LibPhobosFilter()) self.add_dir ('libquadmath') # libsanitizer is imported from upstream. self.add_dir ('libssp') @@ -745,6 +767,7 @@ class GCCCmdLine (CmdLine): 'libiberty', 'libitm', 'libobjc', + 'libphobos', 'libssp', 'libstdc++-v3', 'libvtv', |