[packages/git-core] vim hiliting is included in vim distribution as of vim 7.2
glen
glen at pld-linux.org
Thu Mar 13 07:34:29 CET 2014
commit b5b1842fe9704120f90daf311e22bfcd04180074
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Mar 13 08:32:59 2014 +0200
vim hiliting is included in vim distribution as of vim 7.2
git-core.spec | 35 -----------------------------------
1 file changed, 35 deletions(-)
---
diff --git a/git-core.spec b/git-core.spec
index 5d7d8c2..2955419 100644
--- a/git-core.spec
+++ b/git-core.spec
@@ -395,20 +395,6 @@ dowolne polecenia Gita; w przyszłości interfejs udostępni także
specjalne metody do łatwego wykonywania operacji nietrywialnych do
wykonania przy użyciu ogólnego interfejsu poleceń.
-%package -n vim-syntax-gitcommit
-Summary: Vim syntax: gitcommit
-Summary(pl.UTF-8): Składnia dla Vima: gitcommit
-Group: Applications/Editors/Vim
-Requires: %{name} = %{version}-%{release}
-# for _vimdatadir existence
-Requires: vim-rt >= 4:6.3.058-3
-
-%description -n vim-syntax-gitcommit
-This plugin provides syntax highlighting for git's commit messages.
-
-%description -n vim-syntax-gitcommit -l pl.UTF-8
-Ta wtyczka dostarcza podświetlanie składni dla treści commitów gita.
-
%prep
%setup -q -n git-%{version}
%patch0 -p1
@@ -501,22 +487,6 @@ cp -p contrib/completion/git-completion.bash $RPM_BUILD_ROOT%{bash_compdir}/git
# Install bzr and hg remote helpers from contrib
install -p contrib/remote-helpers/git-remote-{bzr,hg} $RPM_BUILD_ROOT%{_libdir}/%{name}
-# vim syntax
-install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax
-cat > $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax/gitcommit.vim << 'EOF'
-autocmd BufNewFile,BufRead *.git/COMMIT_EDITMSG setf gitcommit
-autocmd BufNewFile,BufRead *.git/config,.gitconfig setf gitconfig
-autocmd BufNewFile,BufRead git-rebase-todo setf gitrebase
-autocmd BufNewFile,BufRead .msg.[0-9]*
- \ if getline(1) =~ '^From.*# This line is ignored.$' |
- \ setf gitsendemail |
- \ endif
-autocmd BufNewFile,BufRead *.git/**
- \ if getline(1) =~ '^\x\{40\}\>\|^ref: ' |
- \ setf git |
- \ endif
-EOF
-
# gitweb
mv $RPM_BUILD_ROOT{%{appdir},%{cgibindir}}/gitweb.cgi
ln -s %{cgibindir}/gitweb.cgi $RPM_BUILD_ROOT%{appdir}/gitweb.cgi
@@ -796,8 +766,3 @@ fi
%{perl_vendorlib}/Git/I18N.pm
%{perl_vendorlib}/Git/IndexInfo.pm
%{_mandir}/man3/Git*.3pm*
-
-%files -n vim-syntax-gitcommit
-%defattr(644,root,root,755)
-%doc contrib/vim/README
-%{_datadir}/vim/vimfiles/syntax/gitcommit.vim
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/git-core.git/commitdiff/b5b1842fe9704120f90daf311e22bfcd04180074
More information about the pld-cvs-commit
mailing list