| 1 | # Copyright 1999-2004 Gentoo Foundation |
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.8 2004/06/25 00:39:48 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/sgml-catalog.eclass,v 1.9 2004/10/19 19:51:12 vapier Exp $ |
| 4 | # |
4 | # |
| 5 | # Author Matthew Turk <satai@gentoo.org> |
5 | # Author Matthew Turk <satai@gentoo.org> |
| 6 | |
6 | |
| 7 | inherit base |
7 | inherit base |
| 8 | INHERITED="$INHERITED $ECLASS" |
8 | INHERITED="$INHERITED $ECLASS" |
| … | |
… | |
| 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 | |
| 74 | sgml-catalog_cleanup() { |
74 | sgml-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 | |