comparison text/docbook-xsl/docbook-xsl-post.sh @ 462:be644df25418

text/docbook-xsl: initial import, closes #1561
author David Demelier <markand@malikania.fr>
date Sat, 06 Apr 2019 11:01:23 +0200
parents
children f3e036ac528e
comparison
equal deleted inserted replaced
461:d0c00acc1808 462:be644df25418
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 -d /etc/xml;
20 fi
21
22 if [ ! -f $DESTDIR/etc/xml/catalog ]; then
23 xmlcatalog --noout --create $DESTDIR/etc/xml/catalog >/dev/null 2>&1
24 fi
25
26 xmlcatalog --noout --add "rewriteSystem" \
27 "http://docbook.sourceforge.net/release/xsl/1.79.1" \
28 "/usr/share/xml/docbook/xsl-stylesheets-1.79.1" \
29 $DESTDIR/etc/xml/catalog >/dev/null 2>&1
30
31 xmlcatalog --noout --add "rewriteURI" \
32 "http://docbook.sourceforge.net/release/xsl/1.79.1" \
33 "/usr/share/xml/docbook/xsl-stylesheets-1.79.1" \
34 $DESTDIR/etc/xml/catalog >/dev/null 2>&1
35
36 xmlcatalog --noout --add "rewriteSystem" \
37 "http://docbook.sourceforge.net/release/xsl/current" \
38 "/usr/share/xml/docbook/xsl-stylesheets-1.79.1" \
39 $DESTDIR/etc/xml/catalog >/dev/null 2>&1
40
41 xmlcatalog --noout --add "rewriteURI" \
42 "http://docbook.sourceforge.net/release/xsl/current" \
43 "/usr/share/xml/docbook/xsl-stylesheets-1.79.1" \
44 $DESTDIR/etc/xml/catalog >/dev/null 2>&1