summaryrefslogtreecommitdiff
path: root/gdb/copyright.py
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2012-06-05 13:29:07 +0000
committerJoel Brobecker <brobecker@gnat.com>2012-06-05 13:29:07 +0000
commitfd5c41596fe76fd356843acba8776fd8a3b77d18 (patch)
treeebfe907d9308788440e282bd1ae9204bd49f552a /gdb/copyright.py
parent784eeb9ca992bfd5833b1bde805dfef6a4d8c31c (diff)
downloadgdb-fd5c41596fe76fd356843acba8776fd8a3b77d18.tar.gz
copyright.py: Update path to gnulib import.
The location where we store the gnulib import has changed. This patch updates accordingly the path to gnulib's update-copyright script. gdb/ChangeLog: * copyright.py (update_files, main): Fix path to update-copyright script.
Diffstat (limited to 'gdb/copyright.py')
-rw-r--r--gdb/copyright.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/copyright.py b/gdb/copyright.py
index d83c93eba85..ff51ca4b7fe 100644
--- a/gdb/copyright.py
+++ b/gdb/copyright.py
@@ -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)