From 5daaa92c8d4831b23bd2f1ab818abf78c8b93ceb Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 25 Aug 2010 08:41:45 -0400 Subject: [PATCH] Added user aliases to update_copyright.py and print comment chars in help. --- update_copyright.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/update_copyright.py b/update_copyright.py index 22f1b9a..b28d00c 100755 --- a/update_copyright.py +++ b/update_copyright.py @@ -69,11 +69,15 @@ COMMENT_CHARS=['#', '%'] # allowed comment characters # } # Git-based projects are encouraged to use .mailmap instead of # ALIASES. See git-shortlog(1) for details. -ALIASES = {} +ALIASES = { + 'W. Trevor King ': + ['William Trevor King ', + 'wking '], +} # List of paths that should not be scanned for copyright updates. # IGNORED_PATHS = ['./.git/'] -IGNORED_PATHS = ['./.git/', './template/'] +IGNORED_PATHS = ['./.git/', './template/web/'] # List of files that should not be scanned for copyright updates. # IGNORED_FILES = ['COPYING'] IGNORED_FILES = ['COPYING', 'certgen.py', 'mk_simple_certs.py', @@ -626,6 +630,7 @@ if __name__ == '__main__': import optparse import sys + PROJECT_INFO['comment_chars'] = COMMENT_CHARS usage = """%%prog [options] [file ...] Update copyright information in source code with information from @@ -635,7 +640,8 @@ Replaces every line starting with '^# Copyright' and continuing with '^#' with an auto-generated copyright blurb. If you want to add #-commented material after a copyright blurb, please insert a blank line between the blurb and your comment, so the next run of -``update_copyright.py`` doesn't clobber your comment. +``update_copyright.py`` doesn't clobber your comment. The comment +character ('#' above) can be any of %(comment_chars)s.' If no files are given, a list of files to update is generated automatically. -- 2.26.2