summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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}"
}