pakur.sh 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. for DB_VER in 4.5 4.4 4.3 4.2 4.1.2
  2. do
  3. mkdir -p $PKG/usr/share/xml/docbook/xml-dtd-$DB_VER
  4. cp -a $SRC/$isim-$DB_VER/{ent,docbook.cat,*.dtd,*.mod} \
  5. $PKG/usr/share/xml/docbook/xml-dtd-$DB_VER/
  6. done
  7. # create initial docbook-xml catalog
  8. mkdir -p $PKG/etc/xml
  9. xmlcatalog --noout --create $PKG/etc/xml/$isim
  10. # add each version to the initial catalog
  11. #
  12. # 4.5
  13. xmlcatalog --noout --add "public" \
  14. "-//OASIS//DTD DocBook XML V4.5//EN" \
  15. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \
  16. $PKG/etc/xml/$isim
  17. xmlcatalog --noout --add "public" \
  18. "-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \
  19. "http://www.oasis-open.org/docbook/xml/4.5/calstblx.dtd" \
  20. $PKG/etc/xml/$isim
  21. xmlcatalog --noout --add "public" \
  22. "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
  23. "http://www.oasis-open.org/docbook/xml/4.5/soextblx.dtd" \
  24. $PKG/etc/xml/$isim
  25. xmlcatalog --noout --add "public" \
  26. "-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \
  27. "http://www.oasis-open.org/docbook/xml/4.5/dbpoolx.mod" \
  28. $PKG/etc/xml/$isim
  29. xmlcatalog --noout --add "public" \
  30. "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \
  31. "http://www.oasis-open.org/docbook/xml/4.5/dbhierx.mod" \
  32. $PKG/etc/xml/$isim
  33. xmlcatalog --noout --add "public" \
  34. "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \
  35. "http://www.oasis-open.org/docbook/xml/4.5/htmltblx.mod" \
  36. $PKG/etc/xml/$isim
  37. xmlcatalog --noout --add "public" \
  38. "-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \
  39. "http://www.oasis-open.org/docbook/xml/4.5/dbnotx.mod" \
  40. $PKG/etc/xml/$isim
  41. xmlcatalog --noout --add "public" \
  42. "-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" \
  43. "http://www.oasis-open.org/docbook/xml/4.5/dbcentx.mod" \
  44. $PKG/etc/xml/$isim
  45. xmlcatalog --noout --add "public" \
  46. "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" \
  47. "http://www.oasis-open.org/docbook/xml/4.5/dbgenent.mod" \
  48. $PKG/etc/xml/$isim
  49. xmlcatalog --noout --add "rewriteSystem" \
  50. "http://www.oasis-open.org/docbook/xml/4.5" \
  51. "file:///usr/share/xml/docbook/xml-dtd-4.5" \
  52. $PKG/etc/xml/$isim
  53. xmlcatalog --noout --add "rewriteURI" \
  54. "http://www.oasis-open.org/docbook/xml/4.5" \
  55. "file:///usr/share/xml/docbook/xml-dtd-4.5" \
  56. $PKG/etc/xml/$isim
  57. # 4.4
  58. xmlcatalog --noout --add "public" \
  59. "-//OASIS//DTD DocBook XML V4.4//EN" \
  60. "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" \
  61. $PKG/etc/xml/$isim
  62. xmlcatalog --noout --add "public" \
  63. "-//OASIS//DTD DocBook CALS Table Model V4.4//EN" \
  64. "http://www.oasis-open.org/docbook/xml/4.4/calstblx.dtd" \
  65. $PKG/etc/xml/$isim
  66. xmlcatalog --noout --add "public" \
  67. "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.4//EN" \
  68. "http://www.oasis-open.org/docbook/xml/4.4/htmltblx.mod" \
  69. $PKG/etc/xml/$isim
  70. xmlcatalog --noout --add "public" \
  71. "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
  72. "http://www.oasis-open.org/docbook/xml/4.4/soextblx.dtd" \
  73. $PKG/etc/xml/$isim
  74. xmlcatalog --noout --add "public" \
  75. "-//OASIS//ELEMENTS DocBook Information Pool V4.4//EN" \
  76. "http://www.oasis-open.org/docbook/xml/4.4/dbpoolx.mod" \
  77. $PKG/etc/xml/$isim
  78. xmlcatalog --noout --add "public" \
  79. "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.4//EN" \
  80. "http://www.oasis-open.org/docbook/xml/4.4/dbhierx.mod" \
  81. $PKG/etc/xml/$isim
  82. xmlcatalog --noout --add "public" \
  83. "-//OASIS//ENTITIES DocBook Additional General Entities V4.4//EN" \
  84. "http://www.oasis-open.org/docbook/xml/4.4/dbgenent.mod" \
  85. $PKG/etc/xml/$isim
  86. xmlcatalog --noout --add "public" \
  87. "-//OASIS//ENTITIES DocBook Notations V4.4//EN" \
  88. "http://www.oasis-open.org/docbook/xml/4.4/dbnotx.mod" \
  89. $PKG/etc/xml/$isim
  90. xmlcatalog --noout --add "public" \
  91. "-//OASIS//ENTITIES DocBook Character Entities V4.4//EN" \
  92. "http://www.oasis-open.org/docbook/xml/4.4/dbcentx.mod" \
  93. $PKG/etc/xml/$isim
  94. xmlcatalog --noout --add "rewriteSystem" \
  95. "http://www.oasis-open.org/docbook/xml/4.4" \
  96. "file:///usr/share/xml/docbook/xml-dtd-4.4" \
  97. $PKG/etc/xml/$isim
  98. xmlcatalog --noout --add "rewriteURI" \
  99. "http://www.oasis-open.org/docbook/xml/4.4" \
  100. "file:///usr/share/xml/docbook/xml-dtd-4.4" \
  101. $PKG/etc/xml/$isim
  102. # 4.3
  103. xmlcatalog --noout --add "public" \
  104. "-//OASIS//DTD DocBook XML V4.3//EN" \
  105. "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" \
  106. $PKG/etc/xml/$isim
  107. xmlcatalog --noout --add "public" \
  108. "-//OASIS//DTD DocBook CALS Table Model V4.3//EN" \
  109. "http://www.oasis-open.org/docbook/xml/4.3/calstblx.dtd" \
  110. $PKG/etc/xml/$isim
  111. xmlcatalog --noout --add "public" \
  112. "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
  113. "http://www.oasis-open.org/docbook/xml/4.3/soextblx.dtd" \
  114. $PKG/etc/xml/$isim
  115. xmlcatalog --noout --add "public" \
  116. "-//OASIS//ELEMENTS DocBook Information Pool V4.3//EN" \
  117. "http://www.oasis-open.org/docbook/xml/4.3/dbpoolx.mod" \
  118. $PKG/etc/xml/$isim
  119. xmlcatalog --noout --add "public" \
  120. "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.3//EN" \
  121. "http://www.oasis-open.org/docbook/xml/4.3/dbhierx.mod" \
  122. $PKG/etc/xml/$isim
  123. xmlcatalog --noout --add "public" \
  124. "-//OASIS//ENTITIES DocBook Additional General Entities V4.3//EN" \
  125. "http://www.oasis-open.org/docbook/xml/4.3/dbgenent.mod" \
  126. $PKG/etc/xml/$isim
  127. xmlcatalog --noout --add "public" \
  128. "-//OASIS//ENTITIES DocBook Notations V4.3//EN" \
  129. "http://www.oasis-open.org/docbook/xml/4.3/dbnotx.mod" \
  130. $PKG/etc/xml/$isim
  131. xmlcatalog --noout --add "public" \
  132. "-//OASIS//ENTITIES DocBook Character Entities V4.3//EN" \
  133. "http://www.oasis-open.org/docbook/xml/4.3/dbcentx.mod" \
  134. $PKG/etc/xml/$isim
  135. xmlcatalog --noout --add "rewriteSystem" \
  136. "http://www.oasis-open.org/docbook/xml/4.3" \
  137. "file:///usr/share/xml/docbook/xml-dtd-4.3" \
  138. $PKG/etc/xml/$isim
  139. xmlcatalog --noout --add "rewriteURI" \
  140. "http://www.oasis-open.org/docbook/xml/4.3" \
  141. "file:///usr/share/xml/docbook/xml-dtd-4.3" \
  142. $PKG/etc/xml/$isim
  143. # 4.2
  144. xmlcatalog --noout --add "public" \
  145. "-//OASIS/DTD DocBook XML V4.2//EN" \
  146. "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" \
  147. $PKG/etc/xml/$isim
  148. xmlcatalog --noout --add "public" \
  149. "-//OASIS/DTD DocBook CALS Table Model V4.2//EN" \
  150. "http://www.oasis-open.org/docbook/xml/4.2/calstblx.dtd" \
  151. $PKG/etc/xml/$isim
  152. xmlcatalog --noout --add "public" \
  153. "-//OASIS/DTD XML Exchange Table Model 19990315//EN" \
  154. "http://www.oasis-open.org/docbook/xml/4.2/soextblx.dtd" \
  155. $PKG/etc/xml/$isim
  156. xmlcatalog --noout --add "public" \
  157. "-//OASIS/ELEMENTS DocBook Information Pool V4.2//EN" \
  158. "http://www.oasis-open.org/docbook/xml/4.2/dbpoolx.mod" \
  159. $PKG/etc/xml/$isim
  160. xmlcatalog --noout --add "public" \
  161. "-//OASIS/ELEMENTS DocBook Document Hierarchy V4.2//EN" \
  162. "http://www.oasis-open.org/docbook/xml/4.2/dbhierx.mod" \
  163. $PKG/etc/xml/$isim
  164. xmlcatalog --noout --add "public" \
  165. "-//OASIS/ENTITIES DocBook Additional General Entities V4.2//EN" \
  166. "http://www.oasis-open.org/docbook/xml/4.2/dbgenent.mod" \
  167. $PKG/etc/xml/$isim
  168. xmlcatalog --noout --add "public" \
  169. "-//OASIS/ENTITIES DocBook Notations V4.2//EN" \
  170. "http://www.oasis-open.org/docbook/xml/4.2/dbnotx.mod" \
  171. $PKG/etc/xml/$isim
  172. xmlcatalog --noout --add "public" \
  173. "-//OASIS/ENTITIES DocBook Character Entities V4.2//EN" \
  174. "http://www.oasis-open.org/docbook/xml/4.2/dbcentx.mod" \
  175. $PKG/etc/xml/$isim
  176. xmlcatalog --noout --add "rewriteSystem" \
  177. "http://www.oasis-open.org/docbook/xml/4.2" \
  178. "file:///usr/share/xml/docbook/xml-dtd-4.2" \
  179. $PKG/etc/xml/$isim
  180. xmlcatalog --noout --add "rewriteURI" \
  181. "http://www.oasis-open.org/docbook/xml/4.2" \
  182. "file:///usr/share/xml/docbook/xml-dtd-4.2" \
  183. $PKG/etc/xml/$isim
  184. # 4.1.2
  185. xmlcatalog --noout --add "public" \
  186. "-//OASIS//DTD DocBook XML V4.1.2//EN" \
  187. "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" \
  188. $PKG/etc/xml/$isim
  189. xmlcatalog --noout --add "public" \
  190. "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" \
  191. "http://www.oasis-open.org/docbook/xml/4.1.2/calstblx.dtd" \
  192. $PKG/etc/xml/$isim
  193. xmlcatalog --noout --add "public" \
  194. "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
  195. "http://www.oasis-open.org/docbook/xml/4.1.2/soextblx.dtd" \
  196. $PKG/etc/xml/$isim
  197. xmlcatalog --noout --add "public" \
  198. "-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN" \
  199. "http://www.oasis-open.org/docbook/xml/4.1.2/dbpoolx.mod" \
  200. $PKG/etc/xml/$isim
  201. xmlcatalog --noout --add "public" \
  202. "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN" \
  203. "http://www.oasis-open.org/docbook/xml/4.1.2/dbhierx.mod" \
  204. $PKG/etc/xml/$isim
  205. xmlcatalog --noout --add "public" \
  206. "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN" \
  207. "http://www.oasis-open.org/docbook/xml/4.1.2/dbgenent.mod" \
  208. $PKG/etc/xml/$isim
  209. xmlcatalog --noout --add "public" \
  210. "-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" \
  211. "http://www.oasis-open.org/docbook/xml/4.1.2/dbnotx.mod" \
  212. $PKG/etc/xml/$isim
  213. xmlcatalog --noout --add "public" \
  214. "-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN" \
  215. "http://www.oasis-open.org/docbook/xml/4.1.2/dbcentx.mod" \
  216. $PKG/etc/xml/$isim
  217. xmlcatalog --noout --add "rewriteSystem" \
  218. "http://www.oasis-open.org/docbook/xml/4.1.2" \
  219. "file:///usr/share/xml/docbook/xml-dtd-4.1.2" \
  220. $PKG/etc/xml/$isim
  221. xmlcatalog --noout --add "rewriteURI" \
  222. "http://www.oasis-open.org/docbook/xml/4.1.2" \
  223. "file:///usr/share/xml/docbook/xml-dtd-4.1.2" \
  224. $PKG/etc/xml/$isim