Skip to content

Commit 5336bf6

Browse files
committed
made licenseck.py work for year substitutions
1 parent 6d98ca9 commit 5336bf6

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

Diff for: src/etc/licenseck.py

+21-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
# option. This file may not be copied, modified, or distributed
99
# except according to those terms.
1010

11-
license0 = """// Copyright 2012-2013 The Rust Project Developers. See the
11+
license0 = """\
12+
// Copyright 2012-2013 The Rust Project Developers. See the
1213
// COPYRIGHT file at the top-level directory of this distribution and at
1314
// http://rust-lang.org/COPYRIGHT.
1415
//
@@ -19,7 +20,8 @@
1920
// except according to those terms.
2021
"""
2122

22-
license1 = """// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
23+
license1 = """\
24+
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
2325
// file at the top-level directory of this distribution and at
2426
// http://rust-lang.org/COPYRIGHT.
2527
//
@@ -30,7 +32,8 @@
3032
// except according to those terms.
3133
"""
3234

33-
license2 = """// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
35+
license2 = """\
36+
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
3437
// file at the top-level directory of this distribution and at
3538
// http://rust-lang.org/COPYRIGHT.
3639
//
@@ -41,7 +44,8 @@
4144
// except according to those terms.
4245
"""
4346

44-
license3 = """# Copyright 2013 The Rust Project Developers. See the COPYRIGHT
47+
license3 = """\
48+
# Copyright 2013 The Rust Project Developers. See the COPYRIGHT
4549
# file at the top-level directory of this distribution and at
4650
# http://rust-lang.org/COPYRIGHT.
4751
#
@@ -52,7 +56,19 @@
5256
# except according to those terms.
5357
"""
5458

55-
licenses = [license0, license1, license2, license3]
59+
license4 = """\
60+
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
61+
// file at the top-level directory of this distribution and at
62+
// http://rust-lang.org/COPYRIGHT.
63+
//
64+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
65+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
66+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
67+
// option. This file may not be copied, modified, or distributed
68+
// except according to those terms.
69+
"""
70+
71+
licenses = [license0, license1, license2, license3, license4]
5672

5773
exceptions = [
5874
"rt/rust_android_dummy.cpp", # BSD, chromium

0 commit comments

Comments
 (0)