mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-03 16:52:34 +01:00
Update supybot-newplugin to generate the current year for the copyright line.
This commit is contained in:
parent
1d1f8c43fc
commit
0d693e8b9d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user