* tools/bump-copyright-years
(update_license): Remove. (bump_years): Print reminder about amending the change history section of the LICENSE.html file. git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@2722 8cb11bc2-c004-0410-86c3-e597b4017df7trunk
parent
ad0c0dd5fa
commit
7043120d2c
|
@ -48,14 +48,17 @@ def bump_years_recursive(target_dir, year):
|
|||
elif os.path.isdir(child_path):
|
||||
bump_years_recursive(child_path, year)
|
||||
|
||||
def update_license(license_file, long_date):
|
||||
pass
|
||||
|
||||
def bump_years(target_dir):
|
||||
year = time.strftime('%Y')
|
||||
long_date = time.strftime('%B %d, %Y')
|
||||
bump_years_recursive(target_dir, year)
|
||||
update_license(os.path.join(target_dir, 'LICENSE.html'), long_date)
|
||||
sys.stdout.write("""\
|
||||
Copyright years bumped. Don't forget to add the following line to
|
||||
the primary license file at '%s':
|
||||
|
||||
<li>%s — copyright years updated</li>
|
||||
|
||||
""" % (os.path.join(target_dir, 'LICENSE.html'), long_date))
|
||||
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue