diff options
author | Aron Griffis <agriffis@gentoo.org> | 2003-07-30 18:53:54 +0000 |
---|---|---|
committer | Aron Griffis <agriffis@gentoo.org> | 2003-07-30 18:53:54 +0000 |
commit | c150514ac6e7bb7a3118b2d652d279c5714cff4e (patch) | |
tree | 2ef84a210e8bf655a5b0d86f870141a148f00110 /eclass/vim-doc.eclass | |
parent | add vim-doc and vim-plugin eclasses in prep for app-vim category (diff) | |
download | historical-c150514ac6e7bb7a3118b2d652d279c5714cff4e.tar.gz historical-c150514ac6e7bb7a3118b2d652d279c5714cff4e.tar.bz2 historical-c150514ac6e7bb7a3118b2d652d279c5714cff4e.zip |
prevent warning on first install of vim-core
Diffstat (limited to 'eclass/vim-doc.eclass')
-rw-r--r-- | eclass/vim-doc.eclass | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/eclass/vim-doc.eclass b/eclass/vim-doc.eclass index 74662ecc1cd0..aa90d35b771d 100644 --- a/eclass/vim-doc.eclass +++ b/eclass/vim-doc.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/vim-doc.eclass,v 1.1 2003/07/30 18:47:06 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/vim-doc.eclass,v 1.2 2003/07/30 18:53:54 agriffis 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 @@ -24,7 +24,7 @@ update_vim_helptags() { local vim=`which vim 2>/dev/null` [[ -z "$vim" ]] && vim=`which gvim 2>/dev/null` [[ -z "$vim" ]] && vim=`which kvim 2>/dev/null` - if [[ -z "$vim" ]]; then + if [[ -z "$vim" -a $PN != vim-core ]]; then ewarn "No suitable vim binary to rebuild documentation tags" fi @@ -35,7 +35,7 @@ update_vim_helptags() { # Remove links, and possibly remove stale dirs find $d/doc -name \*.txt -type l | while read s; do - [[ `readlink "$s"` = ${vimfiles}/* ]] && rm -f "$s" + [[ `readlink "$s"` = $vimfiles/* ]] && rm -f "$s" done if [[ -f "$d/doc/tags" && $(find "$d" | wc -l | awk '{print $1}') = 3 ]]; then @@ -48,8 +48,8 @@ update_vim_helptags() { fi # Re-create / install new links - if [[ -d ${vimfiles}/doc ]]; then - ln -s ${vimfiles}/doc/*.txt $d/doc 2>/dev/null + if [[ -d $vimfiles/doc ]]; then + ln -s $vimfiles/doc/*.txt $d/doc 2>/dev/null fi # Update tags; need a vim binary for this |