GDB (API)
|
Functions | |
def | get_update_list |
def | update_files |
def | may_have_copyright_notice |
def | main |
Variables | |
tuple | EXCLUDE_LIST |
Some constants, placed at the end because they take up a lot of room. | |
tuple | EXCLUDE_ALL_LIST |
tuple | BY_HAND |
tuple | MULTIPLE_COPYRIGHT_HEADERS |
def copyright.get_update_list | ( | ) |
Return the list of files to update. Assumes that the current working directory when called is the root of the GDB source tree (NOT the gdb/ subdirectory!). The names of the files are relative to that root directory.
Definition at line 39 of file copyright.py.
def copyright.main | ( | ) |
The main subprogram.
Definition at line 142 of file copyright.py.
def copyright.may_have_copyright_notice | ( | filename | ) |
Check that the given file does not seem to have a copyright notice. The filename is relative to the root directory. This function assumes that the current working directory is that root directory. The algorigthm is fairly crude, meaning that it might return some false positives. I do not think it will return any false negatives... We might improve this function to handle more complex cases later...
Definition at line 113 of file copyright.py.
def copyright.update_files | ( | update_list | ) |
Update the copyright header of the files in the given list. We use gnulib's update-copyright script for that.
Definition at line 70 of file copyright.py.
tuple copyright::BY_HAND |
00001 ( 00002 # These files are sensitive to line numbering. 00003 "gdb/testsuite/gdb.base/step-line.inp", 00004 "gdb/testsuite/gdb.base/step-line.c", 00005 )
Definition at line 193 of file copyright.py.
00001 ( 00002 "COPYING", "COPYING.LIB", "CVS", "configure", "copying.c", 00003 "fdl.texi", "gpl.texi", "aclocal.m4", 00004 )
Definition at line 187 of file copyright.py.
tuple copyright::EXCLUDE_LIST |
00001 ( 00002 'gdb/common/glibc_thread_db.h', 00003 'gdb/CONTRIBUTE', 00004 'gdb/gnulib/import' 00005 )
Some constants, placed at the end because they take up a lot of room.
The actual value of these constants is not significant to the understanding of the script.
Definition at line 173 of file copyright.py.
00001 ( 00002 "gdb/doc/gdb.texinfo", 00003 "gdb/doc/refcard.tex", 00004 "gdb/gdbarch.sh", 00005 )
Definition at line 202 of file copyright.py.