Annotation of /trunk/rust/patches/rust-1.73.0-0002-bootstrap-Change-bash-completion-dir.patch
Parent Directory | Revision Log
Revision 3792 -
(hide annotations)
(download)
Thu Oct 19 14:30:57 2023 UTC (7 months, 3 weeks ago) by niro
File size: 1079 byte(s)
Thu Oct 19 14:30:57 2023 UTC (7 months, 3 weeks ago) by niro
File size: 1079 byte(s)
-rediffed for 1.73.0
1 | niro | 3792 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
2 | From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org> | ||
3 | Date: Thu, 13 Jul 2023 21:16:53 +0200 | ||
4 | Subject: [PATCH] bootstrap: Change bash-completion dir | ||
5 | |||
6 | --- | ||
7 | src/bootstrap/dist.rs | 6 +++++- | ||
8 | 1 file changed, 5 insertions(+), 1 deletion(-) | ||
9 | |||
10 | diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs | ||
11 | index 78a5faeae04b..4f4e4e508619 100644 | ||
12 | --- a/src/bootstrap/dist.rs | ||
13 | +++ b/src/bootstrap/dist.rs | ||
14 | @@ -1079,7 +1079,11 @@ fn run(self, builder: &Builder<'_>) -> Option<GeneratedTarball> { | ||
15 | |||
16 | tarball.add_file(&cargo, "bin", 0o755); | ||
17 | tarball.add_file(etc.join("_cargo"), "share/zsh/site-functions", 0o644); | ||
18 | - tarball.add_renamed_file(etc.join("cargo.bashcomp.sh"), "etc/bash_completion.d", "cargo"); | ||
19 | + tarball.add_renamed_file( | ||
20 | + etc.join("cargo.bashcomp.sh"), | ||
21 | + "share/bash-completion/completions", | ||
22 | + "cargo", | ||
23 | + ); | ||
24 | tarball.add_dir(etc.join("man"), "share/man/man1"); | ||
25 | tarball.add_legal_and_readme_to("share/doc/cargo"); | ||
26 |