2012-06-05 Joel Brobecker <brobecker@adacore.com>
+ * copyright.py (update_files, main): Fix path to update-copyright
+ script.
+
+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.
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]
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)