Update supybot-newplugin to generate the current year for the copyright line.

This commit is contained in:
James Vega 2005-01-28 20:33:50 +00:00
parent 1d1f8c43fc
commit 0d693e8b9d

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python
###
# Copyright (c) 2002-2004, Jeremiah Fincher
# Copyright (c) 2002-2005, Jeremiah Fincher
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@ -33,6 +33,7 @@ import supybot
import os
import sys
import time
import os.path
import optparse
@ -49,7 +50,7 @@ from supybot.questions import *
copyright = '''
###
# Copyright (c) 2004, %s
# Copyright (c) %s, %%s
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@ -76,7 +77,9 @@ copyright = '''
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
###
'''.strip() # Here we use strip() instead of lstrip() on purpose.
''' % time.strftime('%Y')
# Here we use strip() instead of lstrip() on purpose.
copyright = copyright.strip()
pluginTemplate = '''
%s