OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
4.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../docbook-xml/docbook-xml.conf
  5. # Copyright (C) 2007 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- SDE-COPYRIGHT-NOTE-END ---
  14. makeopt=
  15. makeinstopt=
  16. autoextract=0
  17. datadir="/usr/share/xml/docbook"
  18. hook_add postmake 5 'docbook_install'
  19. docbook_install() {
  20. local catalog=$root/etc/xml/docbook
  21. local dtdver=$( echo $xsrctar | sed -n -e 's,^docbook-xml-\(.*\)\.zip$,\1,p' )
  22. local URI= dtddir=
  23. if [ -n "$dtdver" ]; then
  24. echo_status "DocBook XML DTD V$dtdver"
  25. dtddir="$datadir/xml-dtd-$dtdver"
  26. URI="http://www.oasis-open.org/docbook/xml/$dtdver"
  27. rm -rf "$root$dtddir"
  28. mkdir -p "$root$dtddir"
  29. echo "Installing..."
  30. unzip -d "$root$dtddir" $( match_source_file -p "$xsrctar" )
  31. echo "Populating /etc/xml/docbook"
  32. [ -s "$catalog" ] || xmlcatalog --noout --create "$catalog"
  33. xmlcatalog --noout \
  34. --add 'public' "-//OASIS//ELEMENTS DocBook XML Information Pool V$dtdver//EN" "file://$dtddir/dbpoolx.mod" \
  35. --add 'public' "-//OASIS//DTD DocBook XML V$dtdver//EN" "file://$dtddir/docbookx.dtd" \
  36. --add 'public' "-//OASIS//ENTITIES DocBook XML Character Entities V$dtdver//EN" "file://$dtddir/dbcentx.mod" \
  37. --add 'public' "-//OASIS//ENTITIES DocBook XML Notations V$dtdver//EN" "file://$dtddir/dbnotnx.mod" \
  38. --add 'public' "-//OASIS//ENTITIES DocBook XML Additional General Entities V$dtdver//EN" "file://$dtddir/dbgenent.mod" \
  39. --add 'public' "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V$dtdver//EN" "file://$dtddir/dbhierx.mod" \
  40. --add 'public' "-//OASIS//DTD XML Exchange Table Model 19990315//EN" "file://$dtddir/soextblx.dtd" \
  41. --add 'public' "-//OASIS//DTD DocBook XML CALS Table Model V$dtdver//EN" "file://$dtddir/calstblx.dtd" \
  42. --add 'rewriteSystem' "$URI" "$dtddir" \
  43. --add 'rewriteURI' "$URI" "$dtddir" \
  44. --add 'public' "ISO 8879:1986//ENTITIES Publishing//EN" "file://$dtddir/ent/iso-pub.ent" \
  45. --add 'public' "ISO 8879:1986//ENTITIES Greek Letters//EN" "file://$dtddir/ent/iso-grk1.ent" \
  46. --add 'public' "ISO 8879:1986//ENTITIES Box and Line Drawing//EN" "file://$dtddir/ent/iso-box.ent" \
  47. --add 'public' "ISO 8879:1986//ENTITIES Greek Symbols//EN" "file://$dtddir/ent/iso-grk3.ent" \
  48. --add 'public' "ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN" "file://$dtddir/ent/iso-amsn.ent" \
  49. --add 'public' "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN" "file://$dtddir/ent/iso-num.ent" \
  50. --add 'public' "ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN" "file://$dtddir/ent/iso-grk4.ent" \
  51. --add 'public' "ISO 8879:1986//ENTITIES Diacritical Marks//EN" "file://$dtddir/ent/iso-dia.ent" \
  52. --add 'public' "ISO 8879:1986//ENTITIES Monotoniko Greek//EN" "file://$dtddir/ent/iso-grk2.ent" \
  53. --add 'public' "ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN" "file://$dtddir/ent/iso-amsa.ent" \
  54. --add 'public' "ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN" "file://$dtddir/ent/iso-amso.ent" \
  55. --add 'public' "ISO 8879:1986//ENTITIES Russian Cyrillic//EN" "file://$dtddir/ent/iso-cyr1.ent" \
  56. --add 'public' "ISO 8879:1986//ENTITIES General Technical//EN" "file://$dtddir/ent/iso-tech.ent" \
  57. --add 'public' "ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN" "file://$dtddir/ent/iso-amsc.ent" \
  58. --add 'public' "ISO 8879:1986//ENTITIES Added Latin 1//EN" "file://$dtddir/ent/iso-lat1.ent" \
  59. --add 'public' "ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN" "file://$dtddir/ent/iso-amsb.ent" \
  60. --add 'public' "ISO 8879:1986//ENTITIES Added Latin 2//EN" "file://$dtddir/ent/iso-lat2.ent" \
  61. --add 'public' "ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN" "file://$dtddir/ent/iso-amsr.ent" \
  62. --add 'public' "ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN" "file://$dtddir/ent/iso-cyr2.ent" \
  63. "$catalog"
  64. else
  65. echo_error "Failed to detect version for $xsrctar."
  66. false
  67. fi
  68. }