This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Tweak update-copyright.py so that it doesn't fail on pdt_5.f03
- From: Jakub Jelinek <jakub at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org, Jeff Law <law at redhat dot com>
- Cc: Paul Thomas <pault at gcc dot gnu dot org>
- Date: Wed, 3 Jan 2018 11:07:15 +0100
- Subject: [committed] Tweak update-copyright.py so that it doesn't fail on pdt_5.f03
- Authentication-results: sourceware.org; auth=none
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
This testcase contains:
! Third, complete example from the PGInsider article:
! "Object-Oriented Programming in Fortran 2003 Part 3: Parameterized Derived Types"
! by Mark Leair
!
! Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved.
!
! NVIDIA CORPORATION and its licensors retain all intellectual property
! and proprietary rights in and to this software, related documentation
! and any modifications thereto. Any use, reproduction, disclosure or
! distribution of this software and related documentation without an express
! license agreement from NVIDIA CORPORATION is strictly prohibited.
!
! THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT
! WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT
! NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR
! FITNESS FOR A PARTICULAR PURPOSE.
!
! Note that modification had to be made all of which are commented.
which makes me wonder if it shouldn't be removed. So that I could update
the copyright years, I've committed following workaround for that, but if
the testcase is removed or rewritten that can go away as well.
2018-01-03 Jakub Jelinek <jakub@redhat.com>
* update-copyright.py: Skip pdt-5.f03 in gfortran.dg subdir.
--- contrib/update-copyright.py (revision 256167)
+++ contrib/update-copyright.py (revision 256168)
@@ -591,6 +591,8 @@ class TestsuiteFilter (GenericFilter):
# Similarly params/README.
if filename == 'README' and os.path.basename (dir) == 'params':
return True
+ if filename == 'pdt_5.f03' and os.path.basename (dir) == 'gfortran.dg':
+ return True
return GenericFilter.skip_file (self, dir, filename)
class LibCppFilter (GenericFilter):
Jakub