[git/f18] move git-prompt.sh into usr/share/git-core/contrib/completion (#854061)

Adam Tkac atkac at fedoraproject.org
Mon Oct 29 16:02:04 UTC 2012


commit 4985e02df93d22701393d287f3549dc48619198e
Author: Adam Tkac <atkac at redhat.com>
Date:   Thu Oct 25 16:24:34 2012 +0200

    move git-prompt.sh into usr/share/git-core/contrib/completion (#854061)
    
    Signed-off-by: Adam Tkac <atkac at redhat.com>

 git.spec |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/git.spec b/git.spec
index d110a86..fa72b86 100644
--- a/git.spec
+++ b/git.spec
@@ -71,7 +71,7 @@
 
 Name:           git
 Version:        1.7.12.1
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Fast Version Control System
 License:        GPLv2
 Group:          Development/Tools
@@ -432,11 +432,9 @@ perl -p \
 %endif
     %{SOURCE3} > %{buildroot}%{_sysconfdir}/xinetd.d/git
 
-# Setup bash completion and git prompt
+# Setup bash completion
 mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d
 install -pm 644 contrib/completion/git-completion.bash %{buildroot}%{_sysconfdir}/bash_completion.d/git
-mkdir -p %{buildroot}%{_sysconfdir}/profile.d
-install -pm 644 contrib/completion/git-prompt.sh %{buildroot}%{_sysconfdir}/profile.d
 
 # Move contrib/hooks out of %%docdir and make them executable
 mkdir -p %{buildroot}%{_datadir}/git-core/contrib
@@ -446,6 +444,11 @@ pushd contrib > /dev/null
 ln -s ../../../git-core/contrib/hooks
 popd > /dev/null
 
+# Install git-prompt.sh
+mkdir -p %{buildroot}%{_datadir}/git-core/contrib/completion
+install -pm 644 contrib/completion/git-prompt.sh \
+    %{buildroot}%{_datadir}/git-core/contrib/completion/
+
 # install git-gui .desktop file
 desktop-file-install \
 %if %{use_desktop_vendor}
@@ -477,7 +480,6 @@ rm -rf %{buildroot}
 %{!?_without_docs: %doc Documentation/*.html Documentation/docbook-xsl.css}
 %{!?_without_docs: %doc Documentation/howto Documentation/technical}
 %{_sysconfdir}/bash_completion.d
-%{_sysconfdir}/profile.d
 
 %files p4
 %defattr(-,root,root)
@@ -580,6 +582,9 @@ rm -rf %{buildroot}
 # No files for you!
 
 %changelog
+* Thu Oct 25 2012 Adam Tkac <atkac redhat com> - 1.7.12.1-2
+- move git-prompt.sh into usr/share/git-core/contrib/completion (#854061)
+
 * Thu Sep 27 2012 Adam Tkac <atkac redhat com> - 1.7.12.1-1
 - update to 1.7.12.1
 - cvsimport should skip more characters (#850640)


More information about the scm-commits mailing list