This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] Fix copyright years in gdbarch.h and gdbarch.c.


copyright.py was updating gdbarch.sh' copyright years, but not
the function that genarates the copyright headers for gdbarch.[hc].

This patch makes the following changes:
  - fixes gdbarch.sh and regenerates gdbarch.[hc]

  - Modify copyright.py to remind the user to update gdbarch.sh
    by hand.  This should also remind the user to rerun the script
    and update gdbarch.[hc] - see next point;

  - Allow copyright.py to update gdbarch.[hc]'c copyright years,
    even though these are generated files;  This should free
    the user from having to update gdbarch.[hc] himself;

gdb/ChangeLog:

        * gdbarch.sh (copyright): Update copyright years.
        * gdbarch.h, gdbarch.c: Regenerate.
        * copyright.py (EXCLUDE_LIST): Remove gdbarch.h and gdbarch.c.
        (MULTIPLE_COPYRIGHT_HEADERS): Add 'gdb/gdbarch.sh'.

Checked in.

---
 gdb/ChangeLog    |    7 +++++++
 gdb/copyright.py |    2 +-
 gdb/gdbarch.c    |    3 +--
 gdb/gdbarch.h    |    3 +--
 gdb/gdbarch.sh   |    3 +--
 5 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index fb571f5..20518f7 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
 2012-12-19  Joel Brobecker  <brobecker@adacore.com>
 
+	* gdbarch.sh (copyright): Update copyright years.
+	* gdbarch.h, gdbarch.c: Regenerate.
+	* copyright.py (EXCLUDE_LIST): Remove gdbarch.h and gdbarch.c.
+	(MULTIPLE_COPYRIGHT_HEADERS): Add 'gdb/gdbarch.sh'.
+
+2012-12-19  Joel Brobecker  <brobecker@adacore.com>
+
 	* acinclude.m4: Update contact info in copyright notice.
 
 2012-12-19  Yao Qi  <yao@codesourcery.com>
diff --git a/gdb/copyright.py b/gdb/copyright.py
index 8bf058a..eec6924 100644
--- a/gdb/copyright.py
+++ b/gdb/copyright.py
@@ -172,7 +172,6 @@ def main ():
 # Filenames are relative to the root directory.
 EXCLUDE_LIST = (
     'gdb/CONTRIBUTE',
-    'gdb/gdbarch.c', 'gdb/gdbarch.h',
     'gdb/gnulib'
 )
 
@@ -202,6 +201,7 @@ 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.
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c
index e15f911..ce2b41b 100644
--- a/gdb/gdbarch.c
+++ b/gdb/gdbarch.c
@@ -3,8 +3,7 @@
 
 /* Dynamic architecture support for GDB, the GNU debugger.
 
-   Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
-   2007, 2008, 2009 Free Software Foundation, Inc.
+   Copyright (C) 1998-2012 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h
index 63157fb..033d536 100644
--- a/gdb/gdbarch.h
+++ b/gdb/gdbarch.h
@@ -3,8 +3,7 @@
 
 /* Dynamic architecture support for GDB, the GNU debugger.
 
-   Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
-   2007, 2008, 2009 Free Software Foundation, Inc.
+   Copyright (C) 1998-2012 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh
index 6d7a578..ec82509 100755
--- a/gdb/gdbarch.sh
+++ b/gdb/gdbarch.sh
@@ -1018,8 +1018,7 @@ cat <<EOF
 
 /* Dynamic architecture support for GDB, the GNU debugger.
 
-   Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
-   2007, 2008, 2009 Free Software Foundation, Inc.
+   Copyright (C) 1998-2012 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
-- 
1.7.10.4


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]