summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Kelly <pioto@gentoo.org>2007-05-14 19:52:06 +0000
committerMike Kelly <pioto@gentoo.org>2007-05-14 19:52:06 +0000
commitcecb02427d1b6b0ecc9fd60fcfad4de5ab1098eb (patch)
treeb0391e7595e87bfecbba06c446cf5b932678cbc7 /eclass/vim-doc.eclass
parentapp-text/gnopaster: Version bump (0.0.9) (diff)
downloadgentoo-2-cecb02427d1b6b0ecc9fd60fcfad4de5ab1098eb.tar.gz
gentoo-2-cecb02427d1b6b0ecc9fd60fcfad4de5ab1098eb.tar.bz2
gentoo-2-cecb02427d1b6b0ecc9fd60fcfad4de5ab1098eb.zip
Fix a bug when we're changing major vim versions, so that we're sure that the old dir gets removed.
Diffstat (limited to 'eclass/vim-doc.eclass')
-rw-r--r--eclass/vim-doc.eclass7
1 files changed, 4 insertions, 3 deletions
diff --git a/eclass/vim-doc.eclass b/eclass/vim-doc.eclass
index 7bb6cd05feb0..98c29235d686 100644
--- a/eclass/vim-doc.eclass
+++ b/eclass/vim-doc.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-doc.eclass,v 1.13 2007/03/13 01:07:08 pioto Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/vim-doc.eclass,v 1.14 2007/05/14 19:52:06 pioto Exp $
#
# This eclass is used by vim.eclass and vim-plugin.eclass to update
# the documentation tags. This is necessary since vim doesn't look in
@@ -30,7 +30,7 @@ update_vim_helptags() {
# Make vim not try to connect to X. See :help gui-x11-start
# in vim for how this evil trickery works.
- if ! [[ -z "${vim}" ]] ; then
+ if [[ -n "${vim}" ]] ; then
ln -s "${vim}" "${T}/tagvim"
vim="${T}/tagvim"
fi
@@ -65,7 +65,8 @@ update_vim_helptags() {
'+set nobackup nomore' \
"+helptags $d/doc" \
'+qa!' </dev/null &>/dev/null
- rm "${vim}"
fi
done
+
+ [[ -n "${vim}" ]] && rm "${vim}"
}