PKGBUILDs/extra/rust/0002-bootstrap-Change-bash-completion-dir.patch

27 lines
1.1 KiB
Diff
Raw Normal View History

2023-07-16 14:54:25 +00:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
Date: Thu, 13 Jul 2023 21:16:53 +0200
Subject: [PATCH] bootstrap: Change bash-completion dir
---
2023-08-05 01:08:23 +00:00
src/bootstrap/dist.rs | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
2023-07-16 14:54:25 +00:00
diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs
2023-08-05 01:08:23 +00:00
index fc353c39cca1..426b1277fb23 100644
2023-07-16 14:54:25 +00:00
--- a/src/bootstrap/dist.rs
+++ b/src/bootstrap/dist.rs
2023-08-05 01:08:23 +00:00
@@ -1071,7 +1071,11 @@ fn run(self, builder: &Builder<'_>) -> Option<GeneratedTarball> {
tarball.add_file(&cargo, "bin", 0o755);
2023-07-16 14:54:25 +00:00
tarball.add_file(etc.join("_cargo"), "share/zsh/site-functions", 0o644);
2023-08-05 01:08:23 +00:00
- tarball.add_renamed_file(etc.join("cargo.bashcomp.sh"), "etc/bash_completion.d", "cargo");
+ tarball.add_renamed_file(
+ etc.join("cargo.bashcomp.sh"),
2023-07-16 14:54:25 +00:00
+ "share/bash-completion/completions",
2023-08-05 01:08:23 +00:00
+ "cargo",
+ );
2023-07-16 14:54:25 +00:00
tarball.add_dir(etc.join("man"), "share/man/man1");
2023-08-05 01:08:23 +00:00
tarball.add_legal_and_readme_to("share/doc/cargo");