Enforce the current year in license blurb.

Enough is enough.

BUG=none
TEST=repo upload prohibits changed files from having the wrong year

Change-Id: Ib4029ede56826edc135673e500a701828d535e58
Reviewed-on: https://gerrit.chromium.org/gerrit/28040
Reviewed-by: Jay Srinivasan <jaysri@chromium.org>
Reviewed-by: Ryan Cui <rcui@chromium.org>
Tested-by: Gilad Arnold <garnold@chromium.org>
Commit-Ready: Gilad Arnold <garnold@chromium.org>
diff --git a/pre-upload.py b/pre-upload.py
index 7b3db58..6e993c5 100755
--- a/pre-upload.py
+++ b/pre-upload.py
@@ -1,9 +1,10 @@
 #!/usr/bin/env python
-# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
+# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
 
 import ConfigParser
+import datetime
 import json
 import optparse
 import os
@@ -307,8 +308,9 @@
 
 def _check_license(project, commit):
   """Verifies the license header."""
+  year = str(datetime.datetime.now().year)
   LICENSE_HEADER = (
-     r".*? Copyright \(c\) 20[-0-9]{2,7} The Chromium OS Authors\. All rights "
+     r".*? Copyright \(c\) " + year + " The Chromium OS Authors\. All rights "
        r"reserved\." "\n"
      r".*? Use of this source code is governed by a BSD-style license that can "
        "be\n"