build.pth2d.INSTALL.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project basedir="../../." default="INSTALL" name="pth2d.INSTALL">
  3. <!--<include file="build.pth2d.PRODUCT.xml" optional="true" />-->
  4. <property location="${pth2d.install}/install_example.file" name="pth2d.INSTALL.install_example" />
  5. <condition property="pth2d.INSTALL.install_example.ifdef" taskname="INSTALL.install_example">
  6. <not>
  7. <available file="${pth2d.repository}/install_example.file" />
  8. </not>
  9. </condition>
  10. <!-- <property name="pth2d.saxon.sh" location="${pth2d.basedir}/install/saxon.sh"/>
  11. <property name="pth2d.saxon" location="${p5build.opt__local}/saxon"/>-->
  12. <condition property="pth2d.saxon.if.exists">
  13. <available file="${pth2d.saxon}"/>
  14. </condition>
  15. <target unless="pth2d.saxon.if.exists" name="saxon" >
  16. <copy file="${pth2d.saxon.sh}" tofile="${pth2d.saxon}"/>
  17. <chmod perm="0755" file="${pth2d.saxon}" failonerror="no"/>
  18. </target>
  19. <target name="python3_select" >
  20. <exec executable="sudo port install python3_select"></exec>
  21. </target>
  22. <target name="html2dita">
  23. <mkdir dir="${html2dita.git}"/>
  24. <exec executable="git" dir="${html2dita.git}">
  25. <arg line="clone ${html2dita.git.url}" />
  26. </exec>
  27. <exec executable="ant">
  28. <arg line="-f ${html2dita.build.xml} init"/>
  29. </exec>
  30. <!--<mkdir dir="${html2dita.git}/ext-plugins/h2d/temp"/>-->
  31. </target>
  32. <target name="org.dita.normalize">
  33. <description>
  34. The org.dita.normalize plugin extends the DITA Open Toolkit with a dita transformation type that generates normalized topics and maps from DITA input.
  35. The normalized output includes the results of the DITA Open Toolkit pre-processing operations, which resolve map references, keys, content references, code references and push metadata back and forth between maps and topics.
  36. In comparison to the source DITA files, the normalized DITA files are modified in the following ways:
  37. References from one DITA map to another are resolved
  38. Map-based links, such as those generated by map hierarchy and relationship tables, are added to the topics.
  39. Link text is resolved.
  40. Map attributes that cascade are made explicit on child elements.
  41. Map metadata such as index entries and copyrights are pushed into topics.
  42. Topic metadata such as navigation titles, link text and short descriptions are pulled from topics into the map.
  43. XML comments are removed.
  44. pplications
  45. Normalized output may be useful in situations where post-processing of DITA content is required, but the downstream systems are limited in their ability to resolve DITA references.
  46. Installation
  47. Run the plug-in installation command:
  48. dita -install https://github.com/dita-ot/org.dita.normalize/archive/1.0.zip
  49. Generating normalized DITA output
  50. Run the dita command and set the value of the output -format option to dita:
  51. dita-ot-dir/bin/dita -input input-file -format dita
  52. where:
  53. dita-ot-dir is the DITA-OT installation directory. input-file is the DITA map or DITA file that you want to process.
  54. </description>
  55. <!-- https://github.com/dita-ot/org.dita.normalize.git -->
  56. </target>
  57. <target name="mod_python">
  58. <exec executable="port">
  59. <arg line="install mod_python"/>
  60. </exec>
  61. </target>
  62. <target name="html-xml-utils">
  63. <exec executable="port">
  64. <arg line="install html-xml-utils"/>
  65. </exec>
  66. </target>
  67. <target name="sgml-common">
  68. <exec executable="port">
  69. <arg line="port install sgml-common"/>
  70. </exec>
  71. </target>
  72. <target name="python.easy_installpip">
  73. <exec command="easy_install">
  74. <arg line="pip"/>
  75. </exec>
  76. <description>
  77. pip install update
  78. pip install jarn.mkrelease
  79. pip install pyip
  80. sudo easy_install lmxl
  81. python setup.py install
  82. https://github.com/lxml/lxml.git
  83. python setup.py build
  84. sudo cp xmldirector/dita/converters/h2d/h2d.xsl /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/xmldirector.dita-0.1.0-py2.7.egg/xmldirector/dita/converters/h2d/h2d.xsl
  85. </description>
  86. </target>
  87. <target name="tidy.if.exists">
  88. <condition property="tidy.if.exists">
  89. <available file="${tidy}"/>
  90. </condition>
  91. </target>
  92. <target name="tidy" unless="tidy.if.exists" depends="tidy.if.exists">
  93. </target>
  94. <target depends="saxon" name="INSTALL" >
  95. </target>
  96. </project>