/[gentoo-x86]/eclass/sgml-catalog.eclass
Gentoo

Diff of /eclass/sgml-catalog.eclass

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

Revision 1.7 Revision 1.10
1# Copyright 1999-2003 Gentoo Technologies, Inc. 1# Copyright 1999-2004 Gentoo Foundation
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/sgml-catalog.eclass,v 1.7 2004/04/10 13:02:38 usata Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/sgml-catalog.eclass,v 1.10 2005/07/06 20:20:04 agriffis Exp $
4# 4#
5# Author Matthew Turk <satai@gentoo.org> 5# Author Matthew Turk <satai@gentoo.org>
6 6
7inherit base 7inherit base
8INHERITED="$INHERITED $ECLASS"
9 8
10DEPEND=">=app-text/sgml-common-0.6.3-r2" 9DEPEND=">=app-text/sgml-common-0.6.3-r2"
11ECLASS=sgml-catalog
12 10
13declare -a toinstall 11declare -a toinstall
14declare -i catcounter 12declare -i catcounter
15let "catcounter=0" 13let "catcounter=0"
16 14
61 arg1=`echo ${toinstall[$i]} | cut -f1 -d\:` 59 arg1=`echo ${toinstall[$i]} | cut -f1 -d\:`
62 arg2=`echo ${toinstall[$i]} | cut -f2 -d\:` 60 arg2=`echo ${toinstall[$i]} | cut -f2 -d\:`
63 if [ -e $arg2 ] 61 if [ -e $arg2 ]
64 then 62 then
65 ewarn "${arg2} still exists! Not removing from ${arg1}" 63 ewarn "${arg2} still exists! Not removing from ${arg1}"
66 ewarn "This is normal behavior for an upgrade..." 64 ewarn "This is normal behavior for an upgrade ..."
67 continue 65 continue
68 fi 66 fi
69 einfo "Now removing $arg1 from $arg2 and /etc/sgml/catalog" 67 einfo "Now removing $arg1 from $arg2 and /etc/sgml/catalog"
70 sgml-catalog_cat_doremove $arg1 $arg2 68 sgml-catalog_cat_doremove $arg1 $arg2
71 done 69 done
72} 70}
73 71
74sgml-catalog_cleanup() { 72sgml-catalog_cleanup() {
75 if [ -e /usr/bin/gensgmlenv ] 73 if [ -e /usr/bin/gensgmlenv ]
76 then 74 then
77 einfo Regenerating SGML environment variables... 75 einfo Regenerating SGML environment variables ...
78 gensgmlenv 76 gensgmlenv
79 grep -v export /etc/sgml/sgml.env > /etc/env.d/93sgmltools-lite 77 grep -v export /etc/sgml/sgml.env > /etc/env.d/93sgmltools-lite
80 fi 78 fi
81} 79}
82 80

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20