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

Diff of /eclass/vim-doc.eclass

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

Revision 1.3 Revision 1.4
1# Copyright 1999-2003 Gentoo Technologies, Inc. 1# Copyright 1999-2003 Gentoo Technologies, Inc.
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-doc.eclass,v 1.3 2003/07/30 21:42:57 agriffis Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/vim-doc.eclass,v 1.4 2003/07/31 00:20:55 agriffis Exp $
4# 4#
5# This eclass is used by vim.eclass and vim-plugin.eclass to update 5# This eclass is used by vim.eclass and vim-plugin.eclass to update
6# the documentation tags. This is necessary since vim doesn't look in 6# the documentation tags. This is necessary since vim doesn't look in
7# /usr/share/vim/vimfiles/doc for documentation; it only uses the 7# /usr/share/vim/vimfiles/doc for documentation; it only uses the
8# versioned directory, for example /usr/share/vim/vim62/doc 8# versioned directory, for example /usr/share/vim/vim62/doc
35 35
36 # Remove links, and possibly remove stale dirs 36 # Remove links, and possibly remove stale dirs
37 find $d/doc -name \*.txt -type l | while read s; do 37 find $d/doc -name \*.txt -type l | while read s; do
38 [[ `readlink "$s"` = $vimfiles/* ]] && rm -f "$s" 38 [[ `readlink "$s"` = $vimfiles/* ]] && rm -f "$s"
39 done 39 done
40 if [[ -f "$d/doc/tags" && 40 if [[ -f "$d/doc/tags" && $(find "$d" | wc -l | tr -d ' ') = 3 ]]; then
41 $(find "$d" | wc -l | awk '{print $1}') = 3 ]]; then
42 # /usr/share/vim/vim61 41 # /usr/share/vim/vim61
43 # /usr/share/vim/vim61/doc 42 # /usr/share/vim/vim61/doc
44 # /usr/share/vim/vim61/doc/tags 43 # /usr/share/vim/vim61/doc/tags
45 einfo "Removing $d" 44 einfo "Removing $d"
46 rm -r "$d" 45 rm -r "$d"

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20