git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH/RFC] Ship bash completion package in RPMs

From
Ian Ward Comfort <icomfort@stanford.edu>
Date
Mar 19, 2010, 18:26 UTC
Message-ID
<1269023213-18432-1-git-send-email-icomfort@stanford.edu>

RPM-based distributions tend to have bash. Let's add the bash completion routines to our core RPM in the standard location.

---

... Unless this is undesirable because the completion support is in contrib/? Anyway, having this upstream would save me some patching, so I thought I'd give it a shot.

 git.spec.in |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/git.spec.in b/git.spec.in
index ee74a5e..d2527c3 100644
--- a/git.spec.in
+++ b/git.spec.in
@@ -127,6 +127,9 @@ find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec rm -f {} ';'
 rm -rf $RPM_BUILD_ROOT%{_mandir}
 %endif
 
+mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
+install -m 644 -T contrib/completion/git-completion.bash $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/git
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -136,6 +139,7 @@ rm -rf $RPM_BUILD_ROOT
 %doc README COPYING Documentation/*.txt
 %{!?_without_docs: %doc Documentation/*.html Documentation/howto}
 %{!?_without_docs: %doc Documentation/technical}
+%{_sysconfdir}/bash_completion.d
 
 %files svn
 %defattr(-,root,root)
-- 
1.7.0.2
Next: Ben Walton
Message 1 of 3 in “Ship bash completion package in RPMs”
  1. Ship bash completion package in RPMsIan Ward Comfort, Mar 19, 2010
  2. Ben WaltonMar 19, 2010
  3. Ian Ward ComfortMar 19, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.