From 5336bf6addc7091ed303a06246b43b99dc0c5cd1 Mon Sep 17 00:00:00 2001 From: Kang Seonghoon Date: Thu, 14 Feb 2013 11:20:40 +0900 Subject: [PATCH] made licenseck.py work for year substitutions --- src/etc/licenseck.py | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/src/etc/licenseck.py b/src/etc/licenseck.py index 5e53eef7ef2b8..973b7deb960db 100644 --- a/src/etc/licenseck.py +++ b/src/etc/licenseck.py @@ -8,7 +8,8 @@ # option. This file may not be copied, modified, or distributed # except according to those terms. -license0 = """// Copyright 2012-2013 The Rust Project Developers. See the +license0 = """\ +// Copyright 2012-2013 The Rust Project Developers. See the // COPYRIGHT file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // @@ -19,7 +20,8 @@ // except according to those terms. """ -license1 = """// Copyright 2012 The Rust Project Developers. See the COPYRIGHT +license1 = """\ +// Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // @@ -30,7 +32,8 @@ // except according to those terms. """ -license2 = """// Copyright 2013 The Rust Project Developers. See the COPYRIGHT +license2 = """\ +// Copyright 2013 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // @@ -41,7 +44,8 @@ // except according to those terms. """ -license3 = """# Copyright 2013 The Rust Project Developers. See the COPYRIGHT +license3 = """\ +# Copyright 2013 The Rust Project Developers. See the COPYRIGHT # file at the top-level directory of this distribution and at # http://rust-lang.org/COPYRIGHT. # @@ -52,7 +56,19 @@ # except according to those terms. """ -licenses = [license0, license1, license2, license3] +license4 = """\ +// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. +""" + +licenses = [license0, license1, license2, license3, license4] exceptions = [ "rt/rust_android_dummy.cpp", # BSD, chromium