summaryrefslogtreecommitdiffstats
path: root/PRESUBMIT.py
diff options
context:
space:
mode:
authorfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-17 15:36:28 +0000
committerfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-17 15:36:28 +0000
commit377ab1daeb970b47a579b25e91dffeedc46bb0e8 (patch)
tree05c970ba3b24ba20c8cafe74f413bf4b7290f7f2 /PRESUBMIT.py
parentcade5686b5ec6a116543bbc29dc4f6a1068d5c17 (diff)
downloadchromium_src-377ab1daeb970b47a579b25e91dffeedc46bb0e8.zip
chromium_src-377ab1daeb970b47a579b25e91dffeedc46bb0e8.tar.gz
chromium_src-377ab1daeb970b47a579b25e91dffeedc46bb0e8.tar.bz2
Enforce copyright-year updates in PRESUBMIT.
This implements the policy handed down in http://g/chrome-team/browse_thread/thread/2a27340089ff5f6c and codified in http://dev.chromium.org/developers/coding-style#TOC-File-headers Note that while the thread above permits the range usage (i.e. 2008-2011), the coding-style document does not, so this change removes that usage. BUG=none TEST=manual testing with changes to file header. Review URL: http://codereview.chromium.org/6694043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78550 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'PRESUBMIT.py')
-rw-r--r--PRESUBMIT.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 2cfb37f..ce630c9 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2010 The Chromium Authors. All rights reserved.
+# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -8,6 +8,8 @@ See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details about the presubmit API built into gcl.
"""
+import time
+
_EXCLUDED_PATHS = (
r"^breakpad[\\\/].*",
r"^net/tools/spdyshark/[\\\/].*",
@@ -22,13 +24,12 @@ _TEXT_FILES = (
)
_LICENSE_HEADER = (
- r".*? Copyright \(c\) 20[0-9\-]{2,7} The Chromium Authors\. All rights "
- r"reserved\." "\n"
+ r".*? Copyright \(c\) %s The Chromium Authors\. All rights reserved\.\n"
r".*? Use of this source code is governed by a BSD-style license that can "
"be\n"
r".*? found in the LICENSE file\."
"\n"
-)
+) % time.strftime("%Y")
def _CheckNoInterfacesInBase(input_api, output_api, source_file_filter):
"""Checks to make sure no files in libbase.a have |@interface|."""