[packages/vim-plugin-dbext] update vim helptags in ex mode (without terminal reset) that does not exit 1

glen glen at pld-linux.org
Wed Jun 25 09:03:20 CEST 2014


commit 5dc290fe33d201c63137c225292a3d4d1c58ab75
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Jun 25 10:03:18 2014 +0300

    update vim helptags in ex mode (without terminal reset) that does not exit 1

 vim-plugin-dbext.spec | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/vim-plugin-dbext.spec b/vim-plugin-dbext.spec
index 23873d7..85d76b9 100644
--- a/vim-plugin-dbext.spec
+++ b/vim-plugin-dbext.spec
@@ -44,14 +44,10 @@ cp -a doc plugin $RPM_BUILD_ROOT%{_vimdatadir}
 rm -rf $RPM_BUILD_ROOT
 
 %post
-umask 022
-echo ':helptags %{_vimdatadir}/doc' | vim -e -s
+echo 'helptags %{_vimdatadir}/doc' | vim -e -s -V0 -R -n --noplugin
 
 %postun
-if [ "$1" = 0 ]; then
-	umask 022
-	echo ':helptags %{_vimdatadir}/doc' | vim -e -s
-fi
+echo 'helptags %{_vimdatadir}/doc' | vim -e -s -V0 -R -n --noplugin
 
 %files
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vim-plugin-dbext.git/commitdiff/5dc290fe33d201c63137c225292a3d4d1c58ab75



More information about the pld-cvs-commit mailing list