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

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

  ViewVC Help
Powered by ViewVC 1.1.20