summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2005-07-11 15:08:07 +0000
committerSven Wegener <swegener@gentoo.org>2005-07-11 15:08:07 +0000
commita18b8c502d697dde5b46e9fa54867d99d8528c63 (patch)
tree5e3d3675e2764dc2b1589043df9a5864c250ca17 /eclass/sgml-catalog.eclass
parentUpdate to support selinux USE flag (blame spb). (diff)
downloadhistorical-a18b8c502d697dde5b46e9fa54867d99d8528c63.tar.gz
historical-a18b8c502d697dde5b46e9fa54867d99d8528c63.tar.bz2
historical-a18b8c502d697dde5b46e9fa54867d99d8528c63.zip
QA: Apply whitespace checks from repoman to eclasses.
Diffstat (limited to 'eclass/sgml-catalog.eclass')
-rw-r--r--eclass/sgml-catalog.eclass94
1 files changed, 47 insertions, 47 deletions
diff --git a/eclass/sgml-catalog.eclass b/eclass/sgml-catalog.eclass
index b3d7c03c5bad..b84e1bd31987 100644
--- a/eclass/sgml-catalog.eclass
+++ b/eclass/sgml-catalog.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/sgml-catalog.eclass,v 1.10 2005/07/06 20:20:04 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/sgml-catalog.eclass,v 1.11 2005/07/11 15:08:06 swegener Exp $
#
# Author Matthew Turk <satai@gentoo.org>
@@ -13,73 +13,73 @@ declare -i catcounter
let "catcounter=0"
sgml-catalog_cat_include() {
- debug-print function $FUNCNAME $*
- toinstall["catcounter++"]="${1}:${2}"
+ debug-print function $FUNCNAME $*
+ toinstall["catcounter++"]="${1}:${2}"
}
sgml-catalog_cat_doinstall() {
- debug-print function $FUNCNAME $*
- /usr/bin/install-catalog --add $1 $2 &>/dev/null
+ debug-print function $FUNCNAME $*
+ /usr/bin/install-catalog --add $1 $2 &>/dev/null
}
sgml-catalog_cat_doremove() {
- debug-print function $FUNCNAME $*
- /usr/bin/install-catalog --remove $1 $2 &>/dev/null
+ debug-print function $FUNCNAME $*
+ /usr/bin/install-catalog --remove $1 $2 &>/dev/null
}
sgml-catalog_pkg_postinst() {
- debug-print function $FUNCNAME $*
- declare -i topindex
- topindex="catcounter-1"
- for i in `seq 0 ${topindex}`
- do
- arg1=`echo ${toinstall[$i]} | cut -f1 -d\:`
- arg2=`echo ${toinstall[$i]} | cut -f2 -d\:`
- if [ ! -e $arg2 ]
- then
- ewarn "${arg2} doesn't appear to exist, although it ought to!"
- continue
- fi
- einfo "Now adding $arg2 to $arg1 and /etc/sgml/catalog"
- sgml-catalog_cat_doinstall $arg1 $arg2
- done
- sgml-catalog_cleanup
+ debug-print function $FUNCNAME $*
+ declare -i topindex
+ topindex="catcounter-1"
+ for i in `seq 0 ${topindex}`
+ do
+ arg1=`echo ${toinstall[$i]} | cut -f1 -d\:`
+ arg2=`echo ${toinstall[$i]} | cut -f2 -d\:`
+ if [ ! -e ${arg2} ]
+ then
+ ewarn "${arg2} doesn't appear to exist, although it ought to!"
+ continue
+ fi
+ einfo "Now adding ${arg2} to ${arg1} and /etc/sgml/catalog"
+ sgml-catalog_cat_doinstall ${arg1} ${arg2}
+ done
+ sgml-catalog_cleanup
}
sgml-catalog_pkg_prerm() {
- sgml-catalog_cleanup
+ sgml-catalog_cleanup
}
sgml-catalog_pkg_postrm() {
- debug-print function $FUNCNAME $*
- declare -i topindex
- topindex="catcounter-1"
- for i in `seq 0 ${topindex}`
- do
- arg1=`echo ${toinstall[$i]} | cut -f1 -d\:`
- arg2=`echo ${toinstall[$i]} | cut -f2 -d\:`
- if [ -e $arg2 ]
- then
- ewarn "${arg2} still exists! Not removing from ${arg1}"
- ewarn "This is normal behavior for an upgrade ..."
- continue
- fi
- einfo "Now removing $arg1 from $arg2 and /etc/sgml/catalog"
- sgml-catalog_cat_doremove $arg1 $arg2
- done
+ debug-print function $FUNCNAME $*
+ declare -i topindex
+ topindex="catcounter-1"
+ for i in `seq 0 ${topindex}`
+ do
+ arg1=`echo ${toinstall[$i]} | cut -f1 -d\:`
+ arg2=`echo ${toinstall[$i]} | cut -f2 -d\:`
+ if [ -e ${arg2} ]
+ then
+ ewarn "${arg2} still exists! Not removing from ${arg1}"
+ ewarn "This is normal behavior for an upgrade ..."
+ continue
+ fi
+ einfo "Now removing $arg1 from $arg2 and /etc/sgml/catalog"
+ sgml-catalog_cat_doremove ${arg1} ${arg2}
+ done
}
sgml-catalog_cleanup() {
- if [ -e /usr/bin/gensgmlenv ]
- then
- einfo Regenerating SGML environment variables ...
- gensgmlenv
- grep -v export /etc/sgml/sgml.env > /etc/env.d/93sgmltools-lite
- fi
+ if [ -e /usr/bin/gensgmlenv ]
+ then
+ einfo Regenerating SGML environment variables ...
+ gensgmlenv
+ grep -v export /etc/sgml/sgml.env > /etc/env.d/93sgmltools-lite
+ fi
}
sgml-catalog_src_compile() {
- return
+ return
}
EXPORT_FUNCTIONS pkg_postrm pkg_postinst src_compile pkg_prerm