+2020-01-01 Joel Brobecker <brobecker@adacore.com>
+
+ * copyright.py (main): Exit if run from the wrong directory.
+
2020-01-01 Joel Brobecker <brobecker@adacore.com>
* top.c (print_gdb_version): Change copyright year to 2020.
2020-01-01 Joel Brobecker <brobecker@adacore.com>
* top.c (print_gdb_version): Change copyright year to 2020.
import os
import os.path
import subprocess
import os
import os.path
import subprocess
"""The main subprogram."""
if not os.path.isfile("gnulib/import/extra/update-copyright"):
print "Error: This script must be called from the gdb directory."
"""The main subprogram."""
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)
root_dir = os.path.dirname(os.getcwd())
os.chdir(root_dir)