From 28fdbd67ae32ebcbc04d2d156c635fc1a9feb648 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 13 Apr 2021 18:59:16 +1000 Subject: [PATCH] add missing copyright headers to *.rs --- pylib/rsbridge/build.rs | 3 +++ rslib/i18n/src/generated.rs | 3 +++ scripts/copyright_headers.py | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pylib/rsbridge/build.rs b/pylib/rsbridge/build.rs index 330deb59b..aa87febfb 100644 --- a/pylib/rsbridge/build.rs +++ b/pylib/rsbridge/build.rs @@ -1,3 +1,6 @@ +// Copyright: Ankitects Pty Ltd and contributors +// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html + fn main() { // this build script simply exists so we can extend the link path // inside Bazel based on an env var, as we need to provide a custom diff --git a/rslib/i18n/src/generated.rs b/rslib/i18n/src/generated.rs index 2f56d9fea..f3fa71ce8 100644 --- a/rslib/i18n/src/generated.rs +++ b/rslib/i18n/src/generated.rs @@ -1,3 +1,6 @@ +// Copyright: Ankitects Pty Ltd and contributors +// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html + // Include auto-generated content #![allow(clippy::all)] diff --git a/scripts/copyright_headers.py b/scripts/copyright_headers.py index 344d9d19c..d014d5abf 100644 --- a/scripts/copyright_headers.py +++ b/scripts/copyright_headers.py @@ -37,7 +37,7 @@ for dirpath, dirnames, fnames in os.walk("."): continue for fname in fnames: - for ext in ".py", ".ts": + for ext in ".py", ".ts", ".rs": if fname.endswith(ext): path = dir / fname with open(path) as f: