aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Ward Comfort <icomfort@stanford.edu>2010-03-26 01:39:57 -0700
committerJunio C Hamano <gitster@pobox.com>2010-03-29 09:40:06 -0700
commit3bfdf87c47d516abfe9a84e8fdd918a930543189 (patch)
tree7d5dd75a4e12a8f886a6ad6e5047da46b534e6b0
parent6a6955134b87ba3ea7d54467e637be0da7ba170b (diff)
downloadgit-3bfdf87c47d516abfe9a84e8fdd918a930543189.tar.gz
git-3bfdf87c47d516abfe9a84e8fdd918a930543189.tar.xz
RPM spec: include bash completion support
Include the bash completion routines from the contrib/ directory in our core RPM, in the de facto standard location. Signed-off-by: Ian Ward Comfort <icomfort@stanford.edu> Acked-by: Ben Walton <bwalton@artsci.utoronto.ca> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--git.spec.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/git.spec.in b/git.spec.in
index ee74a5eed..9533147ff 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)
@@ -192,6 +196,9 @@ rm -rf $RPM_BUILD_ROOT
# No files for you!
%changelog
+* Fri Mar 26 2010 Ian Ward Comfort <icomfort@stanford.edu>
+- Ship bash completion support from contrib/ in the core package.
+
* Sun Jan 31 2010 Junio C Hamano <gitster@pobox.com>
- Do not use %define inside %{!?...} construct.