/[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.17 Revision 1.18
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2012 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.17 2011/12/27 17:55:12 fauli Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/sgml-catalog.eclass,v 1.18 2012/03/23 06:16:15 floppym Exp $
4# 4#
5# Author Matthew Turk <satai@gentoo.org> 5# Author Matthew Turk <satai@gentoo.org>
6 6
7inherit base 7inherit base
8 8
57 has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= 57 has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
58 58
59 for entry in ${SGML_TOINSTALL}; do 59 for entry in ${SGML_TOINSTALL}; do
60 arg1=${entry%%:*} 60 arg1=${entry%%:*}
61 arg2=${entry#*:} 61 arg2=${entry#*:}
62 if [ -e "${EPREFIX}"${arg2} ]
63 then
64 ewarn "${EPREFIX}${arg2} still exists! Not removing from ${EPREFIX}${arg1}"
65 ewarn "This is normal behavior for an upgrade ..."
66 continue
67 fi
68 einfo "Now removing ${EPREFIX}${arg1} from ${EPREFIX}${arg2} and ${EPREFIX}/etc/sgml/catalog" 62 einfo "Now removing ${EPREFIX}${arg2} from ${EPREFIX}${arg1} and ${EPREFIX}/etc/sgml/catalog"
69 sgml-catalog_cat_doremove ${arg1} ${arg2} 63 sgml-catalog_cat_doremove ${arg1} ${arg2}
70 done 64 done
71} 65}
72 66
73sgml-catalog_cleanup() { 67sgml-catalog_cleanup() {

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.20