mirror of https://github.com/google/oss-fuzz.git
[infra] Increase copyright year in the templates automatically.
This commit is contained in:
parent
dbae17b1c1
commit
d2805976a2
|
@ -17,6 +17,7 @@
|
|||
|
||||
from __future__ import print_function
|
||||
import argparse
|
||||
import datetime
|
||||
import errno
|
||||
import os
|
||||
import pipes
|
||||
|
@ -434,7 +435,8 @@ def generate(args):
|
|||
print('Writing new files to', dir)
|
||||
|
||||
template_args = {
|
||||
'project_name' : args.project_name
|
||||
'project_name' : args.project_name,
|
||||
'year': datetime.datetime.now().year
|
||||
}
|
||||
with open(os.path.join(dir, 'project.yaml'), 'w') as f:
|
||||
f.write(templates.PROJECT_YAML_TEMPLATE % template_args)
|
||||
|
|
|
@ -20,7 +20,7 @@ primary_contact: "<primary_contact_email>"
|
|||
"""
|
||||
|
||||
DOCKER_TEMPLATE = """\
|
||||
# Copyright 2017 Google Inc.
|
||||
# Copyright %(year)d Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
|
@ -46,7 +46,7 @@ COPY build.sh $SRC/
|
|||
|
||||
BUILD_TEMPLATE = """\
|
||||
#!/bin/bash -eu
|
||||
# Copyright 2017 Google Inc.
|
||||
# Copyright %(year)d Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
|
|
Loading…
Reference in New Issue