#
# docbook-dtds.spec %post
#
# clean up old catalog which were generated during post install
do
echo $oldfile
if [ -f "$oldfile" ]; then
fi
done
export version=1.0
export release=51
export version_list="{3,4}.{0,1}-sgml 4.1.2-xml 4.{2,3,4,5}-{sgml,xml}"
catcmd='/usr/bin/xmlcatalog --noout'
## Clean up pre-docbook-dtds mess caused by broken trigger.
do
then
fi
done
# The STYLESHEETS/catalog command is for the case in which the style sheets
# were installed after another DTD but before this DTD
case $STYLESHEETS in
*-"*") STYLESHEETS= ;;
esac
eval set ${version_list}
for dir
do
## SGML catalog
# Update the centralized catalog corresponding to this version of the DTD
done
## XML catalog
while read f desc; do
done <<ENDENT
ent/iso-pub.ent ISO 8879:1986//ENTITIES Publishing//EN
ent/iso-grk1.ent ISO 8879:1986//ENTITIES Greek Letters//EN
dbpoolx.mod -//OASIS//ELEMENTS DocBook XML Information Pool V$ver//EN
ent/iso-box.ent ISO 8879:1986//ENTITIES Box and Line Drawing//EN
docbookx.dtd -//OASIS//DTD DocBook XML V$ver//EN
ent/iso-grk3.ent ISO 8879:1986//ENTITIES Greek Symbols//EN
ent/iso-amsn.ent ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN
ent/iso-num.ent ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN
dbcentx.mod -//OASIS//ENTITIES DocBook XML Character Entities V$ver//EN
ent/iso-grk4.ent ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN
dbnotnx.mod -//OASIS//ENTITIES DocBook XML Notations V$ver//EN
ent/iso-dia.ent ISO 8879:1986//ENTITIES Diacritical Marks//EN
ent/iso-grk2.ent ISO 8879:1986//ENTITIES Monotoniko Greek//EN
dbgenent.mod -//OASIS//ENTITIES DocBook XML Additional General Entities V$ver//EN
dbhierx.mod -//OASIS//ELEMENTS DocBook XML Document Hierarchy V$ver//EN
ent/iso-amsa.ent ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN
ent/iso-amso.ent ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN
ent/iso-cyr1.ent ISO 8879:1986//ENTITIES Russian Cyrillic//EN
ent/iso-tech.ent ISO 8879:1986//ENTITIES General Technical//EN
ent/iso-amsc.ent ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN
soextblx.dtd -//OASIS//DTD XML Exchange Table Model 19990315//EN
calstblx.dtd -//OASIS//DTD DocBook XML CALS Table Model V$ver//EN
ent/iso-lat1.ent ISO 8879:1986//ENTITIES Added Latin 1//EN
ent/iso-amsb.ent ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN
ent/iso-lat2.ent ISO 8879:1986//ENTITIES Added Latin 2//EN
ent/iso-amsr.ent ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN
ent/iso-cyr2.ent ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN
ENDENT
done
fi
done
rel=$(echo /etc/sgml/sgml-docbook-3.0-*.cat)
do
done
# Historic versions of this scriptlet contained the following comment:
# <quote>
# Fix up SGML super catalog so that there isn't an XML DTD before an
# SGML one. We need to do this (*sigh*) because xmlcatalog messes up
# the order of the lines, and SGML tools don't like to see XML things
# they aren't expecting.
# </quote>
# But the code that followed just found the first XML DTD and the first
# SGML DTD, swappinmg these two lines if the XML one preceded.
# But that only ensures that there is an SGML DTD before all XML ones.
# No one complained, so either this was enough, or the buggy SGML tools
# are long dead, or their users do not use bugzilla.
# Anyway, the following code, introduced in 1.0-46, does better: it ensures
# that all XML DTDs are after all SGML ones, by moving them to the end.
/xml-docbook/ H
/xml-docbook/ !p
$ {
g
s/^\n//p
}