docbook: fix docbook-catalog-install.sh (used in svc:/application/desktop-cache/docbook-catalog-update:default) for edge case of zero-sized lost catalog file
| | |
| | | |
| | | COMPONENT_NAME= docbook |
| | | COMPONENT_VERSION= 2.30.0 |
| | | COMPONENT_REVISION= 2 |
| | | COMPONENT_REVISION= 3 |
| | | COMPONENT_SUMMARY= docbook SGML and XML stylesheets |
| | | |
| | | include ../../../make-rules/ips.mk |
| | |
| | | |
| | | if [ -w $CATALOG ] |
| | | then |
| | | if [ ! -s $CATALOG ] |
| | | then |
| | | # Empty or missing file confuses further "add" operations |
| | | /usr/bin/xmlcatalog --create > $CATALOG |
| | | fi |
| | | |
| | | # DocBook XML V4.1.2 |
| | | /usr/bin/xmlcatalog --noout --add "public" \ |
| | | "ISO 8879:1986//ENTITIES Publishing//EN" \ |