Install licenses into share/doc/rust/licenses

This changes the path from "licences" to "licenses" for consistency
across the repo, including the usage directly around this line. This is
a US/UK spelling difference, but I believe the US spelling is also more
common in open source in general.

(cherry picked from commit d183da6331)
This commit is contained in:
Josh Stone 2025-03-12 08:43:21 -07:00
parent 2c0e146d6d
commit 7fc74cdd8b

View file

@ -515,7 +515,7 @@ impl Step for Rustc {
// The REUSE-managed license files
let license = |path: &Path| {
builder.install(path, &image.join("share/doc/rust/licences"), 0o644);
builder.install(path, &image.join("share/doc/rust/licenses"), 0o644);
};
for entry in t!(std::fs::read_dir(builder.src.join("LICENSES"))).flatten() {
license(&entry.path());