mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-05 17:52:39 +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
|
#!/usr/bin/env python
|
||||||
|
|
||||||
###
|
###
|
||||||
# Copyright (c) 2002-2004, Jeremiah Fincher
|
# Copyright (c) 2002-2005, Jeremiah Fincher
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@ -33,6 +33,7 @@ import supybot
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import time
|
||||||
import os.path
|
import os.path
|
||||||
import optparse
|
import optparse
|
||||||
|
|
||||||
@ -49,7 +50,7 @@ from supybot.questions import *
|
|||||||
|
|
||||||
copyright = '''
|
copyright = '''
|
||||||
###
|
###
|
||||||
# Copyright (c) 2004, %s
|
# Copyright (c) %s, %%s
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# 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
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
# 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 = '''
|
pluginTemplate = '''
|
||||||
%s
|
%s
|
||||||
|
Loading…
Reference in New Issue
Block a user