milis/talimatname/genel/d/docbook-xml/talimat

261 lines
10 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: XML veri dosyalarının DocBook kural setine göre doğrulanması için bir doküman tipi tanımları
2016-03-10 10:57:03 +01:00
# URL: http://www.docbook.org/
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler: libxml2 unzip
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02:00
isim=docbook-xml
surum=4.5
devir=1
kaynak=(http://www.docbook.org/xml/4.5/docbook-xml-4.5.zip
2016-03-10 10:57:03 +01:00
http://www.docbook.org/xml/4.4/docbook-xml-4.4.zip
http://www.docbook.org/xml/4.3/docbook-xml-4.3.zip
http://www.docbook.org/xml/4.2/docbook-xml-4.2.zip
2016-02-24 01:27:23 +01:00
http://www.docbook.org/xml/4.1.2/docbkx412.zip)
unpack_source() {
# similarly-named versions first
2016-03-10 10:57:03 +01:00
local DTDVERSION
for DTDVERSION in 4.5 4.4 4.3 4.2; do
2017-10-28 14:10:23 +02:00
install -d $SRC/$isim-$DTDVERSION
unzip -q -d $SRC/$isim-$DTDVERSION $DERLEME_KAYNAKDIZIN/$isim-$DTDVERSION.zip
2016-02-24 01:27:23 +01:00
done
2016-03-10 10:57:03 +01:00
2016-02-24 01:27:23 +01:00
# now 4.1.2, named differently
2017-10-28 14:10:23 +02:00
install -d $SRC/$isim-4.1.2
unzip -q -d $SRC/$isim-4.1.2 $DERLEME_KAYNAKDIZIN/docbkx412.zip
2016-02-24 01:27:23 +01:00
}
2017-10-27 23:59:41 +02:00
derle() {
2016-02-24 01:27:23 +01:00
# copy to proper locations
2016-03-10 10:57:03 +01:00
for DTDVERSION in 4.5 4.4 4.3 4.2 4.1.2
2016-02-24 01:27:23 +01:00
do
2016-03-10 10:57:03 +01:00
install -d $PKG/usr/share/xml/docbook/xml-dtd-$DTDVERSION
2017-10-28 14:10:23 +02:00
cp -a $SRC/$isim-$DTDVERSION/{ent,docbook.cat,*.dtd,*.mod} \
2016-03-10 10:57:03 +01:00
$PKG/usr/share/xml/docbook/xml-dtd-$DTDVERSION/
2016-02-24 01:27:23 +01:00
done
2016-03-10 10:57:03 +01:00
find $PKG -type f \( -perm -g=r -o -perm -g=w \) -exec chmod -g=rw {} \+
2016-02-24 01:27:23 +01:00
# create initial docbook-xml catalog
2016-03-10 10:57:03 +01:00
install -d $PKG/etc/xml
2017-10-28 14:10:23 +02:00
xmlcatalog --noout --create $PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
# add each version to the initial catalog
#
# 4.5
xmlcatalog --noout --add "public" \
"-//OASIS//DTD DocBook XML V4.5//EN" \
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \
"http://www.oasis-open.org/docbook/xml/4.5/calstblx.dtd" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
"http://www.oasis-open.org/docbook/xml/4.5/soextblx.dtd" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \
"http://www.oasis-open.org/docbook/xml/4.5/dbpoolx.mod" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \
"http://www.oasis-open.org/docbook/xml/4.5/dbhierx.mod" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \
"http://www.oasis-open.org/docbook/xml/4.5/htmltblx.mod" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \
"http://www.oasis-open.org/docbook/xml/4.5/dbnotx.mod" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" \
"http://www.oasis-open.org/docbook/xml/4.5/dbcentx.mod" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" \
"http://www.oasis-open.org/docbook/xml/4.5/dbgenent.mod" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "rewriteSystem" \
"http://www.oasis-open.org/docbook/xml/4.5" \
"file:///usr/share/xml/docbook/xml-dtd-4.5" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "rewriteURI" \
"http://www.oasis-open.org/docbook/xml/4.5" \
"file:///usr/share/xml/docbook/xml-dtd-4.5" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
# 4.4
xmlcatalog --noout --add "public" \
"-//OASIS//DTD DocBook XML V4.4//EN" \
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS//DTD DocBook CALS Table Model V4.4//EN" \
"http://www.oasis-open.org/docbook/xml/4.4/calstblx.dtd" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS//ELEMENTS DocBook XML HTML Tables V4.4//EN" \
"http://www.oasis-open.org/docbook/xml/4.4/htmltblx.mod" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
"http://www.oasis-open.org/docbook/xml/4.4/soextblx.dtd" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS//ELEMENTS DocBook Information Pool V4.4//EN" \
"http://www.oasis-open.org/docbook/xml/4.4/dbpoolx.mod" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS//ELEMENTS DocBook Document Hierarchy V4.4//EN" \
"http://www.oasis-open.org/docbook/xml/4.4/dbhierx.mod" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook Additional General Entities V4.4//EN" \
"http://www.oasis-open.org/docbook/xml/4.4/dbgenent.mod" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook Notations V4.4//EN" \
"http://www.oasis-open.org/docbook/xml/4.4/dbnotx.mod" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook Character Entities V4.4//EN" \
"http://www.oasis-open.org/docbook/xml/4.4/dbcentx.mod" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "rewriteSystem" \
"http://www.oasis-open.org/docbook/xml/4.4" \
"file:///usr/share/xml/docbook/xml-dtd-4.4" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "rewriteURI" \
"http://www.oasis-open.org/docbook/xml/4.4" \
"file:///usr/share/xml/docbook/xml-dtd-4.4" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
# 4.3
xmlcatalog --noout --add "public" \
"-//OASIS//DTD DocBook XML V4.3//EN" \
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS//DTD DocBook CALS Table Model V4.3//EN" \
"http://www.oasis-open.org/docbook/xml/4.3/calstblx.dtd" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
"http://www.oasis-open.org/docbook/xml/4.3/soextblx.dtd" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS//ELEMENTS DocBook Information Pool V4.3//EN" \
"http://www.oasis-open.org/docbook/xml/4.3/dbpoolx.mod" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS//ELEMENTS DocBook Document Hierarchy V4.3//EN" \
"http://www.oasis-open.org/docbook/xml/4.3/dbhierx.mod" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook Additional General Entities V4.3//EN" \
"http://www.oasis-open.org/docbook/xml/4.3/dbgenent.mod" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook Notations V4.3//EN" \
"http://www.oasis-open.org/docbook/xml/4.3/dbnotx.mod" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook Character Entities V4.3//EN" \
"http://www.oasis-open.org/docbook/xml/4.3/dbcentx.mod" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "rewriteSystem" \
"http://www.oasis-open.org/docbook/xml/4.3" \
"file:///usr/share/xml/docbook/xml-dtd-4.3" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "rewriteURI" \
"http://www.oasis-open.org/docbook/xml/4.3" \
"file:///usr/share/xml/docbook/xml-dtd-4.3" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
# 4.2
xmlcatalog --noout --add "public" \
"-//OASIS/DTD DocBook XML V4.2//EN" \
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS/DTD DocBook CALS Table Model V4.2//EN" \
"http://www.oasis-open.org/docbook/xml/4.2/calstblx.dtd" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS/DTD XML Exchange Table Model 19990315//EN" \
"http://www.oasis-open.org/docbook/xml/4.2/soextblx.dtd" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS/ELEMENTS DocBook Information Pool V4.2//EN" \
"http://www.oasis-open.org/docbook/xml/4.2/dbpoolx.mod" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS/ELEMENTS DocBook Document Hierarchy V4.2//EN" \
"http://www.oasis-open.org/docbook/xml/4.2/dbhierx.mod" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS/ENTITIES DocBook Additional General Entities V4.2//EN" \
"http://www.oasis-open.org/docbook/xml/4.2/dbgenent.mod" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS/ENTITIES DocBook Notations V4.2//EN" \
"http://www.oasis-open.org/docbook/xml/4.2/dbnotx.mod" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS/ENTITIES DocBook Character Entities V4.2//EN" \
"http://www.oasis-open.org/docbook/xml/4.2/dbcentx.mod" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "rewriteSystem" \
"http://www.oasis-open.org/docbook/xml/4.2" \
"file:///usr/share/xml/docbook/xml-dtd-4.2" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "rewriteURI" \
"http://www.oasis-open.org/docbook/xml/4.2" \
"file:///usr/share/xml/docbook/xml-dtd-4.2" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
# 4.1.2
xmlcatalog --noout --add "public" \
"-//OASIS//DTD DocBook XML V4.1.2//EN" \
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" \
"http://www.oasis-open.org/docbook/xml/4.1.2/calstblx.dtd" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
"http://www.oasis-open.org/docbook/xml/4.1.2/soextblx.dtd" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN" \
"http://www.oasis-open.org/docbook/xml/4.1.2/dbpoolx.mod" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN" \
"http://www.oasis-open.org/docbook/xml/4.1.2/dbhierx.mod" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN" \
"http://www.oasis-open.org/docbook/xml/4.1.2/dbgenent.mod" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" \
"http://www.oasis-open.org/docbook/xml/4.1.2/dbnotx.mod" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN" \
"http://www.oasis-open.org/docbook/xml/4.1.2/dbcentx.mod" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "rewriteSystem" \
"http://www.oasis-open.org/docbook/xml/4.1.2" \
"file:///usr/share/xml/docbook/xml-dtd-4.1.2" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-02-24 01:27:23 +01:00
xmlcatalog --noout --add "rewriteURI" \
"http://www.oasis-open.org/docbook/xml/4.1.2" \
"file:///usr/share/xml/docbook/xml-dtd-4.1.2" \
2017-10-28 14:10:23 +02:00
$PKG/etc/xml/$isim
2016-03-10 10:57:03 +01:00
rm $PKG/usr/share/xml/docbook/xml-dtd-4.{4,5}/ent/README
}