comparison text/docbook-xml/docbook-xml-post.sh @ 461:d0c00acc1808

text/docbook-xml: initial import, closes #1560
author David Demelier <markand@malikania.fr>
date Sat, 06 Apr 2019 10:39:16 +0200
parents
children ddab65a5b3f5
comparison
equal deleted inserted replaced
460:b43b5c35f273 461:d0c00acc1808
1 #!/bin/sh
2 #
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr>
4 #
5 # Permission to use, copy, modify, and/or distribute this software for any
6 # purpose with or without fee is hereby granted, provided that the above
7 # copyright notice and this permission notice appear in all copies.
8 #
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 #
17
18 if [ ! -d $DESTDIR/etc/xml ]; then
19 install -dm755 $DESTDIR/etc/xml >/dev/null 2>&1
20 fi
21
22 if [ ! -f $DESTDIR/etc/xml/catalog ]; then
23 xmlcatalog --noout --create $DESTDIR/etc/xml/catalog >/dev/null 2>&2
24 fi
25
26 xmlcatalog --noout --add "delegatePublic" \
27 "-//OASIS//ENTITIES DocBook XML" \
28 "file:///etc/xml/docbook" \
29 $DESTDIR/etc/xml/catalog &&
30 xmlcatalog --noout --add "delegatePublic" \
31 "-//OASIS//DTD DocBook XML" \
32 "file:///etc/xml/docbook" \
33 $DESTDIR/etc/xml/catalog &&
34 xmlcatalog --noout --add "delegateSystem" \
35 "http://www.oasis-open.org/docbook/" \
36 "file:///etc/xml/docbook" \
37 $DESTDIR/etc/xml/catalog &&
38 xmlcatalog --noout --add "delegateURI" \
39 "http://www.oasis-open.org/docbook/" \
40 "file:///etc/xml/docbook" \
41 $DESTDIR/etc/xml/catalog