fix: 🐛 etc/bash_complettion -> src/etc/... to avoid copy error

chore: 🎨 format dist.rs
This commit is contained in:
ekusiadadus 2023-04-28 01:19:10 +09:00
parent 6ce22733b9
commit 08ce68b6a6

View File

@ -1068,7 +1068,11 @@ fn run(self, builder: &Builder<'_>) -> Option<GeneratedTarball> {
tarball.add_file(&cargo, "bin", 0o755);
tarball.add_file(etc.join("_cargo"), "share/zsh/site-functions", 0o644);
tarball.add_renamed_file(etc.join("cargo.bashcomp.sh"), "etc/bash_completion.d", "cargo");
tarball.add_renamed_file(
etc.join("cargo.bashcomp.sh"),
"src/etc/bash_completion.d",
"cargo",
);
tarball.add_dir(etc.join("man"), "share/man/man1");
tarball.add_legal_and_readme_to("share/doc/cargo");