This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 1/5] copyright.py: Tell user to update gdb.texinfo and refcard.tex by hand.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Cc: Joel Brobecker <brobecker at adacore dot com>
- Date: Tue, 5 Jun 2012 06:32:58 -0700
- Subject: [PATCH 1/5] copyright.py: Tell user to update gdb.texinfo and refcard.tex by hand.
- References: <1338903182-3850-1-git-send-email-brobecker@adacore.com>
gdb/ChangeLog:
* copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
(main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
for which a reminder to update by hand is printed.
---
gdb/ChangeLog | 6 ++++++
gdb/copyright.py | 10 +++++++++-
2 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ac6de66..0ab658c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2012-06-05 Joel Brobecker <brobecker@adacore.com>
+
+ * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
+ (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
+ for which a reminder to update by hand is printed.
+
2012-06-04 Doug Evans <dje@google.com>
* buildsym.c (make_blockvector): Add comment.
diff --git a/gdb/copyright.py b/gdb/copyright.py
index e8f2833..d83c93e 100644
--- a/gdb/copyright.py
+++ b/gdb/copyright.py
@@ -152,7 +152,7 @@ def main ():
print
print "\033[31mREMINDER: The following files must be updated by hand." \
"\033[0m"
- for filename in BY_HAND:
+ for filename in BY_HAND + MULTIPLE_COPYRIGHT_HEADERS:
print " ", filename
############################################################################
@@ -193,6 +193,14 @@ BY_HAND = (
"gdb/testsuite/gdb.base/step-line.c",
)
+# Files containing multiple copyright headers. This script is only
+# fixing the first one it finds, so we need to finish the update
+# by hand.
+MULTIPLE_COPYRIGHT_HEADERS = (
+ "gdb/doc/gdb.texinfo",
+ "gdb/doc/refcard.tex",
+)
+
# The list of file which have a copyright, but not head by the FSF.
# Filenames are relative to the root directory.
NOT_FSF_LIST = (
--
1.7.1