X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fcopyright.py;h=30f46633c70b345bbeb3f8adaecc8ffa4e1a875c;hb=d7f3ff3ea7830389f458be7c5eadb5d4a4e0a90b;hp=d83c93eba85445e788fadbdb624b8ff6258e4c32;hpb=3770a1599ecd04bc5860aa6d0c6ed1376d2e7798;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/copyright.py b/gdb/copyright.py index d83c93eba8..30f46633c7 100644 --- a/gdb/copyright.py +++ b/gdb/copyright.py @@ -1,6 +1,6 @@ #! /usr/bin/env python -# Copyright (C) 2011-2012 Free Software Foundation, Inc. +# Copyright (C) 2011-2015 Free Software Foundation, Inc. # # This file is part of GDB. # @@ -79,7 +79,9 @@ def update_files(update_list): os.environ['UPDATE_COPYRIGHT_USE_INTERVALS'] = '2' # Perform the update, and save the output in a string. - update_cmd = ['bash', 'gdb/gnulib/extra/update-copyright'] + update_list + update_cmd = ['bash', 'gdb/gnulib/import/extra/update-copyright'] + update_cmd += update_list + p = subprocess.Popen(update_cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) update_out = p.communicate()[0] @@ -139,7 +141,7 @@ def may_have_copyright_notice(filename): def main (): """The main subprogram.""" - if not os.path.isfile("gnulib/extra/update-copyright"): + if not os.path.isfile("gnulib/import/extra/update-copyright"): print "Error: This script must be called from the gdb directory." root_dir = os.path.dirname(os.getcwd()) os.chdir(root_dir) @@ -169,8 +171,9 @@ def main (): # # Filenames are relative to the root directory. EXCLUDE_LIST = ( - 'gdb/gdbarch.c', 'gdb/gdbarch.h', - 'gdb/gnulib' + 'gdb/nat/glibc_thread_db.h', + 'gdb/CONTRIBUTE', + 'gdb/gnulib/import' ) # Files which should not be modified, either because they are @@ -199,13 +202,13 @@ BY_HAND = ( MULTIPLE_COPYRIGHT_HEADERS = ( "gdb/doc/gdb.texinfo", "gdb/doc/refcard.tex", + "gdb/gdbarch.sh", ) # The list of file which have a copyright, but not head by the FSF. # Filenames are relative to the root directory. NOT_FSF_LIST = ( "gdb/exc_request.defs", - "gdb/osf-share", "gdb/gdbtk", "gdb/testsuite/gdb.gdbtk/", "sim/arm/armemu.h", "sim/arm/armos.c", "sim/arm/gdbhost.c", @@ -217,13 +220,9 @@ NOT_FSF_LIST = ( "sim/arm/bag.c", "sim/arm/armvirt.c", "sim/arm/main.c", "sim/arm/bag.h", "sim/arm/communicate.c", "sim/arm/gdbhost.h", "sim/arm/armfpe.h", "sim/arm/arminit.c", - "sim/common/cgen-fpu.c", "sim/common/cgen-fpu.h", "sim/common/cgen-fpu.h", - "sim/common/cgen-accfp.c", "sim/common/sim-fpu.c", - "sim/erc32/sis.h", "sim/erc32/erc32.c", "sim/erc32/func.c", - "sim/erc32/float.c", "sim/erc32/interf.c", "sim/erc32/sis.c", - "sim/erc32/exec.c", + "sim/common/cgen-fpu.c", "sim/common/cgen-fpu.h", + "sim/common/cgen-accfp.c", "sim/mips/m16run.c", "sim/mips/sim-main.c", - "sim/mn10300/sim-main.h", "sim/moxie/moxie-gdb.dts", # Not a single file in sim/ppc/ appears to be copyright FSF :-(. "sim/ppc/filter.h", "sim/ppc/gen-support.h", "sim/ppc/ld-insn.h",