-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Add COPYRIGHT-*.html files to distribution and update COPYRIGHT
#133461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -503,14 +503,22 @@ impl Step for Rustc { | |
// Debugger scripts | ||
builder.ensure(DebuggerScripts { sysroot: image.to_owned(), host }); | ||
|
||
// Misc license info | ||
let cp = |file: &str| { | ||
builder.install(&builder.src.join(file), &image.join("share/doc/rust"), 0o644); | ||
// HTML copyright files | ||
let file_list = builder.ensure(super::run::GenerateCopyright); | ||
for file in file_list { | ||
builder.install(&file, &image.join("share/doc/rust"), 0o644); | ||
} | ||
|
||
// README | ||
builder.install(&builder.src.join("README.md"), &image.join("share/doc/rust"), 0o644); | ||
|
||
// The REUSE-managed license files | ||
let license = |path: &Path| { | ||
builder.install(path, &image.join("share/doc/rust/licences"), 0o644); | ||
}; | ||
cp("COPYRIGHT"); | ||
cp("LICENSE-APACHE"); | ||
cp("LICENSE-MIT"); | ||
cp("README.md"); | ||
for entry in t!(std::fs::read_dir(builder.src.join("LICENSES"))).flatten() { | ||
license(&entry.path()); | ||
} | ||
} | ||
} | ||
} | ||
|
@@ -986,14 +994,15 @@ impl Step for PlainSourceTarball { | |
"CONTRIBUTING.md", | ||
"README.md", | ||
"RELEASES.md", | ||
"REUSE.toml", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Details
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. makes sense - I can do that PR There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See #135588 |
||
"configure", | ||
"x.py", | ||
"config.example.toml", | ||
"Cargo.toml", | ||
"Cargo.lock", | ||
".gitmodules", | ||
]; | ||
let src_dirs = ["src", "compiler", "library", "tests"]; | ||
let src_dirs = ["src", "compiler", "library", "tests", "LICENSES"]; | ||
|
||
copy_src_dirs(builder, &builder.src, &src_dirs, &[], plain_dst_src); | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.