2023-01-22 20:45:14 -05:00
|
|
|
#!/bin/sh
|
2016-02-02 22:55:32 -06:00
|
|
|
|
|
|
|
CATALOG=/etc/xml/catalog
|
2023-01-22 20:45:14 -05:00
|
|
|
name=docbook-xml
|
2016-02-02 22:55:32 -06:00
|
|
|
|
2023-01-22 20:45:14 -05:00
|
|
|
if [ ! -f "$CATALOG" ]; then
|
|
|
|
mkdir -p /etc/xml
|
|
|
|
xmlcatalog --noout --create "$CATALOG"
|
2016-02-02 22:55:32 -06:00
|
|
|
fi
|
|
|
|
|
|
|
|
xmlcatalog --noout --add "delegatePublic" \
|
|
|
|
"-//OASIS//ENTITIES DocBook XML" \
|
2023-01-22 20:45:14 -05:00
|
|
|
"file:///etc/xml/$name" $CATALOG
|
2016-02-02 22:55:32 -06:00
|
|
|
|
|
|
|
xmlcatalog --noout --add "delegatePublic" \
|
|
|
|
"-//OASIS//DTD DocBook XML" \
|
2023-01-22 20:45:14 -05:00
|
|
|
"file:///etc/xml/$name" $CATALOG
|
2016-02-02 22:55:32 -06:00
|
|
|
|
|
|
|
xmlcatalog --noout --add "delegateSystem" \
|
|
|
|
"http://www.oasis-open.org/docbook/" \
|
2023-01-22 20:45:14 -05:00
|
|
|
"file:///etc/xml/$name" $CATALOG
|
2016-02-02 22:55:32 -06:00
|
|
|
|
|
|
|
xmlcatalog --noout --add "delegateURI" \
|
|
|
|
"http://www.oasis-open.org/docbook/" \
|
2023-01-22 20:45:14 -05:00
|
|
|
"file:///etc/xml/$name" $CATALOG
|