26 lines
605 B
Bash
Executable File
26 lines
605 B
Bash
Executable File
#!/bin/sh
|
|
|
|
CATALOG=/etc/xml/catalog
|
|
name=docbook-xml
|
|
|
|
if [ ! -f "$CATALOG" ]; then
|
|
mkdir -p /etc/xml
|
|
xmlcatalog --noout --create "$CATALOG"
|
|
fi
|
|
|
|
xmlcatalog --noout --add "delegatePublic" \
|
|
"-//OASIS//ENTITIES DocBook XML" \
|
|
"file:///etc/xml/$name" $CATALOG
|
|
|
|
xmlcatalog --noout --add "delegatePublic" \
|
|
"-//OASIS//DTD DocBook XML" \
|
|
"file:///etc/xml/$name" $CATALOG
|
|
|
|
xmlcatalog --noout --add "delegateSystem" \
|
|
"http://www.oasis-open.org/docbook/" \
|
|
"file:///etc/xml/$name" $CATALOG
|
|
|
|
xmlcatalog --noout --add "delegateURI" \
|
|
"http://www.oasis-open.org/docbook/" \
|
|
"file:///etc/xml/$name" $CATALOG
|