Skip to content

Commit 4a8295f

Browse files
committed
Merge branch 'ic/bash-completion-rpm'
* ic/bash-completion-rpm: RPM spec: include bash completion support
2 parents ae722b4 + 3bfdf87 commit 4a8295f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

git.spec.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec rm -f {} ';'
127127
rm -rf $RPM_BUILD_ROOT%{_mandir}
128128
%endif
129129

130+
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
131+
install -m 644 -T contrib/completion/git-completion.bash $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/git
132+
130133
%clean
131134
rm -rf $RPM_BUILD_ROOT
132135

@@ -136,6 +139,7 @@ rm -rf $RPM_BUILD_ROOT
136139
%doc README COPYING Documentation/*.txt
137140
%{!?_without_docs: %doc Documentation/*.html Documentation/howto}
138141
%{!?_without_docs: %doc Documentation/technical}
142+
%{_sysconfdir}/bash_completion.d
139143

140144
%files svn
141145
%defattr(-,root,root)
@@ -192,6 +196,9 @@ rm -rf $RPM_BUILD_ROOT
192196
# No files for you!
193197

194198
%changelog
199+
* Fri Mar 26 2010 Ian Ward Comfort <[email protected]>
200+
- Ship bash completion support from contrib/ in the core package.
201+
195202
* Sun Jan 31 2010 Junio C Hamano <[email protected]>
196203
- Do not use %define inside %{!?...} construct.
197204

0 commit comments

Comments
 (0)