From patchwork Tue Nov 13 15:19:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Buclaw X-Patchwork-Id: 997259 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-489910-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gdcproject.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="XePlR5oS"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42vWXH4GNNz9s5c for ; Wed, 14 Nov 2018 02:20:13 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=c215sdlOvIEprkNtM69ABlCeT75JVOGV51qcdiDgQM0HBv Brgs3jTs5/a21AUCJ6DIwzCunuS59DOa5kZqMIOBYQvG4f7SE/sbq7JZT/ZPZvCX nZKXBkiDdk3TcyocAn9w3ZryZ1L3t12HNaetR1eC4GX8gcalTKaJn2XcZfcfY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; s= default; bh=vCQkhwUsmephXNcmem37nLJ9ihk=; b=XePlR5oSS8axFO+QpTjj Ot82mU/LiLGs/DRi7fwSKZA8duJoKfJgiyQlqcjfv6kb8CMKsQudhh4PYZn2IjLO C8LuYwtZ2C2jmhFpaa7a1oYmSt76aiJuzICZ9J39Ig42tNoQVrP6BouiyjvHZFoP oN+tMqhcPwqYtYisoj70UzM= Received: (qmail 120458 invoked by alias); 13 Nov 2018 15:20:06 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 120445 invoked by uid 89); 13 Nov 2018 15:20:05 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.2 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=Reserved, silicon, Silicon, Rights X-HELO: mail-qk1-f172.google.com Received: from mail-qk1-f172.google.com (HELO mail-qk1-f172.google.com) (209.85.222.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 13 Nov 2018 15:20:04 +0000 Received: by mail-qk1-f172.google.com with SMTP id d135so19952574qkc.12 for ; Tue, 13 Nov 2018 07:20:03 -0800 (PST) MIME-Version: 1.0 From: Iain Buclaw Date: Tue, 13 Nov 2018 16:19:50 +0100 Message-ID: Subject: [PATCH] update-copyright.py: Add filters for D language sources To: gcc-patches X-IsSubscribed: yes Hi, This adds filters for upstream dmd, druntime, and phobos libraries, so that the update-copyright script doesn't complain or try to update the copyright years for those files. OK for trunk? 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',