From: Mike Kelly Date: Tue, 10 Oct 2006 15:47:34 +0000 (+0000) Subject: Add proper support for ROOT to the vim-plugin.eclass X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b5901527830f28aa2b68821f895ef3dc64d4ac42;p=gentoo.git Add proper support for ROOT to the vim-plugin.eclass --- diff --git a/eclass/vim-plugin.eclass b/eclass/vim-plugin.eclass index f9cac1b4fed6..2d84d9802ce3 100644 --- a/eclass/vim-plugin.eclass +++ b/eclass/vim-plugin.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/vim-plugin.eclass,v 1.17 2006/01/27 14:59:02 slarti Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/vim-plugin.eclass,v 1.18 2006/10/10 15:47:34 pioto Exp $ # # This eclass simplifies installation of app-vim plugins into # /usr/share/vim/vimfiles. This is a version-independent directory @@ -71,7 +71,7 @@ vim-plugin_pkg_postrm() { # /usr/share/vim/vimfiles/after/* comprised of the snippets in # /usr/share/vim/vimfiles/after/*/*.d update_vim_afterscripts() { - local d f afterdir=/usr/share/vim/vimfiles/after + local d f afterdir=${ROOT}/usr/share/vim/vimfiles/after # Nothing to do if the dir isn't there [ -d ${afterdir} ] || return 0