/[gentoo-x86]/eclass/vim-spell.eclass
Gentoo

Diff of /eclass/vim-spell.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.5 Revision 1.6
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/vim-spell.eclass,v 1.5 2006/01/23 21:35:21 ciaranm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/vim-spell.eclass,v 1.6 2007/03/21 03:40:22 pioto Exp $
4 4
5# 5#
6# Original Author: Ciaran McCreesh <ciaranm@gentoo.org> 6# Original Author: Ciaran McCreesh <ciaranm@gentoo.org>
7# Maintainers: Vim Herd <vim@gentoo.org> 7# Maintainers: Vim Herd <vim@gentoo.org>
8# Purpose: Simplify installing spell files for vim7 8# Purpose: Simplify installing spell files for vim7
97} 97}
98 98
99vim-spell_pkg_postinst() { 99vim-spell_pkg_postinst() {
100 target="/usr/share/vim/vimfiles/spell/" 100 target="/usr/share/vim/vimfiles/spell/"
101 echo 101 echo
102 einfo "To enable ${VIM_SPELL_LANGUAGE} spell checking, use" 102 elog "To enable ${VIM_SPELL_LANGUAGE} spell checking, use"
103 einfo " :setlocal spell spelllang=${VIM_SPELL_CODE}" 103 elog " :setlocal spell spelllang=${VIM_SPELL_CODE}"
104 echo 104 echo
105 einfo "The following (Vim internal, not file) encodings are supported for" 105 elog "The following (Vim internal, not file) encodings are supported for"
106 einfo "this language:" 106 elog "this language:"
107 for f in "${ROOT}/${target}/${VIM_SPELL_CODE}".*.spl ; do 107 for f in "${ROOT}/${target}/${VIM_SPELL_CODE}".*.spl ; do
108 enc="${f##*/${VIM_SPELL_CODE}.}" 108 enc="${f##*/${VIM_SPELL_CODE}.}"
109 enc="${enc%.spl}" 109 enc="${enc%.spl}"
110 [[ -z "${enc}" ]] && continue 110 [[ -z "${enc}" ]] && continue
111 einfo " ${enc}" 111 elog " ${enc}"
112 done 112 done
113 echo 113 echo
114 einfo "For further documentation, use:" 114 elog "For further documentation, use:"
115 einfo " :help spell" 115 elog " :help spell"
116 echo 116 echo
117 epause 117 epause
118} 118}
119 119

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20