updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / docbook-xml-dtd / deleteDocBookCatalog
bloba323b32cf78f67441e011dcac01c8ddf0ea81575
1 #!/bin/sh
3 # Copyright (C) 2002 Daniel Veillard. All Rights Reserved.
5 # Permission is hereby granted, free of charge, to any person obtaining a copy
6 # of this software and associated documentation files (the "Software"), to deal
7 # in the Software without restriction, including without limitation the rights
8 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 # copies of the Software, and to permit persons to whom the Software is fur-
10 # nished to do so, subject to the following conditions:
12 # The above copyright notice and this permission notice shall be included in
13 # all copies or substantial portions of the Software.
15 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FIT-
17 # NESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 # DANIEL VEILLARD BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19 # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CON-
20 # NECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 # Except as contained in this notice, the name of Daniel Veillard shall not
23 # be used in advertising or otherwise to promote the sale, use or other deal-
24 # ings in this Software without prior written authorization from him.
26 # Copyright (C) 2002 Eric Baudais. All Rights Reserved.
28 # Modifications made to Daniel Veillard's catalog build script at
29 # http://xmlsoft.org/buildDocBookCatalog.
31 if [ ! -d /etc/xml -a -w /etc ]
32 then
33 echo Directory /etc/xml missing unable to delete catalog
34 exit 1
36 if [ -w /etc/xml/catalog -a -w /etc/xml ]
37 then
38 ROOTCATALOG=/etc/xml/catalog
39 elif [ -w $HOME/xmlcatalog -a -w $HOME ]
40 then
41 ROOTCATALOG=$HOME/xmlcatalog
42 else
43 echo Unable to update root catalog
44 exit 1
46 if [ -w /etc/xml/docbook -a -w /etc/xml ]
47 then
48 CATALOG=/etc/xml/docbook
49 elif [ -w $HOME/dbkxmlcatalog -a -w $HOME ]
50 then
51 CATALOG=/$HOME/dbkxmlcatalog
52 else
53 echo Unable to update docbook catalog
54 exit 1
57 echo Found root catalog in $ROOTCATALOG
58 echo Found docbook catalog in $CATALOG
59 docbookdir=$1
60 echo Found DocBook DTD in $docbookdir
62 xmlcatalog --noout --del \
63 "file://$docbookdir/dbpoolx.mod" $CATALOG
64 xmlcatalog --noout --del \
65 "file://$docbookdir/docbookx.dtd" $CATALOG
66 xmlcatalog --noout --del \
67 "file://$docbookdir/dbcentx.mod" $CATALOG
68 xmlcatalog --noout --del \
69 "file://$docbookdir/dbnotnx.mod" $CATALOG
70 xmlcatalog --noout --del \
71 "file://$docbookdir/dbgenent.mod" $CATALOG
72 xmlcatalog --noout --del \
73 "file://$docbookdir/dbhierx.mod" $CATALOG
74 xmlcatalog --noout --del \
75 "file://$docbookdir/soextblx.dtd" $CATALOG
76 xmlcatalog --noout --del \
77 "file://$docbookdir/calstblx.dtd" $CATALOG
78 xmlcatalog --noout --del \
79 "http://www.oasis-open.org/docbook/xml/4.1.2" \
80 $CATALOG
81 xmlcatalog --noout --del \
82 "http://www.oasis-open.org/docbook/xml/4.1.2" \
83 $CATALOG
85 xmlcatalog --noout --del \
86 "-//OASIS//ENTITIES DocBook XML" \
87 $ROOTCATALOG
88 xmlcatalog --noout --del \
89 "-//OASIS//DTD DocBook XML" \
90 $ROOTCATALOG
91 xmlcatalog --noout --del \
92 "http://www.oasis-open.org/docbook/" \
93 $ROOTCATALOG
94 xmlcatalog --noout --del \
95 "http://www.oasis-open.org/docbook/" \
96 $ROOTCATALOG
98 isodir=$1/ent
99 echo Found ISO DocBook entities in $isodir
101 xmlcatalog --noout --del \
102 "file://$isodir/iso-pub.ent" $CATALOG
103 xmlcatalog --noout --del \
104 "file://$isodir/iso-grk1.ent" $CATALOG
105 xmlcatalog --noout --del \
106 "file://$isodir/iso-box.ent" $CATALOG
107 xmlcatalog --noout --del \
108 "file://$isodir/iso-grk3.ent" $CATALOG
109 xmlcatalog --noout --del \
110 "file://$isodir/iso-amsn.ent" $CATALOG
111 xmlcatalog --noout --del \
112 "file://$isodir/iso-num.ent" $CATALOG
113 xmlcatalog --noout --del \
114 "file://$isodir/iso-grk4.ent" $CATALOG
115 xmlcatalog --noout --del \
116 "file://$isodir/iso-dia.ent" $CATALOG
117 xmlcatalog --noout --del \
118 "file://$isodir/iso-grk2.ent" $CATALOG
119 xmlcatalog --noout --del \
120 "file://$isodir/iso-amsa.ent" $CATALOG
121 xmlcatalog --noout --del \
122 "file://$isodir/iso-amso.ent" $CATALOG
123 xmlcatalog --noout --del \
124 "file://$isodir/iso-cyr1.ent" $CATALOG
125 xmlcatalog --noout --del \
126 "file://$isodir/iso-tech.ent" $CATALOG
127 xmlcatalog --noout --del \
128 "file://$isodir/iso-amsc.ent" $CATALOG
129 xmlcatalog --noout --del \
130 "file://$isodir/iso-lat1.ent" $CATALOG
131 xmlcatalog --noout --del \
132 "file://$isodir/iso-amsb.ent" $CATALOG
133 xmlcatalog --noout --del \
134 "file://$isodir/iso-lat2.ent" $CATALOG
135 xmlcatalog --noout --del \
136 "file://$isodir/iso-amsr.ent" $CATALOG
137 xmlcatalog --noout --del \
138 "file://$isodir/iso-cyr2.ent" $CATALOG
140 xmlcatalog --noout --del \
141 "ISO 8879:1986" $ROOTCATALOG