Skip to content

Commit

Permalink
RPM spec: include bash completion support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ian Ward Comfort authored and Junio C Hamano committed Mar 29, 2010
1 parent 6a69551 commit 3bfdf87
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions git.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
Expand Down Expand Up @@ -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.

Expand Down

0 comments on commit 3bfdf87

Please sign in to comment.