* zst rebuild docbook-xml
This commit is contained in:
parent
cdd97354e5
commit
cc24fe2b8c
24
docbook-xml/LICENSE
Normal file
24
docbook-xml/LICENSE
Normal file
@ -0,0 +1,24 @@
|
||||
Copyright 1992-2006 HaL Computer Systems, Inc.,
|
||||
O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
|
||||
Corporation, Norman Walsh, Sun Microsystems, Inc., and the
|
||||
Organization for the Advancement of Structured Information
|
||||
Standards (OASIS).
|
||||
|
||||
See also http://docbook.org/specs/
|
||||
|
||||
Permission to use, copy, modify and distribute the DocBook XML DTD
|
||||
and its accompanying documentation for any purpose and without fee
|
||||
is hereby granted in perpetuity, provided that the above copyright
|
||||
notice and this paragraph appear in all copies. The copyright
|
||||
holders make no representation about the suitability of the DTD for
|
||||
any purpose. It is provided "as is" without expressed or implied
|
||||
warranty.
|
||||
|
||||
If you modify the DocBook DTD in any way, except for declaring and
|
||||
referencing additional sets of general entities and declaring
|
||||
additional notations, label your DTD as a variant of DocBook. See
|
||||
the maintenance documentation for more information.
|
||||
|
||||
Please direct all questions, bug reports, or suggestions for
|
||||
changes to the docbook@lists.oasis-open.org mailing list. For more
|
||||
information, see http://www.oasis-open.org/docbook/.
|
42
docbook-xml/docbook-xml.install
Normal file
42
docbook-xml/docbook-xml.install
Normal file
@ -0,0 +1,42 @@
|
||||
post_install() {
|
||||
if [ -e etc/xml/catalog.preserve ]; then
|
||||
mv etc/xml/catalog.preserve etc/xml/catalog
|
||||
elif [ ! -e etc/xml/catalog ]; then
|
||||
xmlcatalog --noout --create etc/xml/catalog
|
||||
fi
|
||||
xmlcatalog --noout --add "delegatePublic" \
|
||||
"-//OASIS//ENTITIES DocBook XML" \
|
||||
"file:///etc/xml/docbook-xml" \
|
||||
etc/xml/catalog
|
||||
xmlcatalog --noout --add "delegatePublic" \
|
||||
"-//OASIS//DTD DocBook XML" \
|
||||
"file:///etc/xml/docbook-xml" \
|
||||
etc/xml/catalog
|
||||
xmlcatalog --noout --add "delegateSystem" \
|
||||
"http://www.oasis-open.org/docbook/" \
|
||||
"file:///etc/xml/docbook-xml" \
|
||||
etc/xml/catalog
|
||||
xmlcatalog --noout --add "delegateURI" \
|
||||
"http://www.oasis-open.org/docbook/" \
|
||||
"file:///etc/xml/docbook-xml" \
|
||||
etc/xml/catalog
|
||||
}
|
||||
|
||||
# arg 1: the new package version
|
||||
# arg 2: the old package version
|
||||
pre_upgrade() {
|
||||
if [ $(vercmp $2 4.5) -lt 0 ]; then
|
||||
xmlcatalog --del "file:///etc/xml/docbook" etc/xml/catalog > etc/xml/catalog.preserve
|
||||
fi
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
if [ $(vercmp $2 4.5) -ge 0 ]; then
|
||||
post_remove
|
||||
fi
|
||||
post_install
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
xmlcatalog --noout --del file:///etc/xml/docbook-xml etc/xml/catalog
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user