- Timestamp:
- Mar 20, 2023 11:01:26 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/Makefile.kmk
r99068 r99074 142 142 # @param 1 Temporary+unique DITA-OT path. 143 143 # @param 2 Additional kmk_redirect options. 144 # @param 3 Parameters for the invoker. 145 # @param 4 Parameters only for 1.8.5. 146 # @param 5 Parameters only for 4.0.2. 144 147 # 145 148 VBOX_DITA_RUN_DOST ?= $(REDIRECT) \ … … 160 163 $2 \ 161 164 -- $(ASH) $(VBOX_PATH_MANUAL_SRC)/dita-ot-copy-exec.sh "$(VBOX_DITA_ORIGINAL_PATH)" "$1" \ 162 -- $(VBOX_JAVA) -jar "$1/lib/dost.jar" "/ditadir:$1" # "/outercontrol:fail" ? 165 -- $(VBOX_JAVA) -jar "$1/lib/dost.jar" "/ditadir:$1" $3 $4 # "/outercontrol:fail" ? 166 167 if 0 # Experiments with dita-ot v4.0.2. Requires java 17. 168 VBOX_JAVA_HOME := C:/Program Files/Java/jdk-17/ 169 VBOX_DITA_ORIGINAL_PATH := D:/Tmp/dita/dita-ot-4.0.2 170 VBOX_DITA_CLASSPATH = \ 171 $(subst $(SP),;,$(strip \ 172 $(VBOX_DITA_ORIGINAL_PATH)/lib/ant-launcher.jar \ 173 $(VBOX_DITA_ORIGINAL_PATH)/config \ 174 $(VBOX_DITA_ORIGINAL_PATH)/lib \ 175 $(wildcard \ 176 $(VBOX_DITA_ORIGINAL_PATH)/lib/*.jar \ 177 $(VBOX_DITA_ORIGINAL_PATH)/plugins/*/lib/*.jar))) 178 VBOX_DITA_RUN_DOST = $(REDIRECT) \ 179 -E 'ANT_HOME=$(VBOX_DITA_ORIGINAL_PATH)' \ 180 -E 'DITA_DIR=$(VBOX_DITA_ORIGINAL_PATH)' \ 181 -E 'JAVA_HOME=$(VBOX_JAVA_HOME)' \ 182 -E 'CLASSPATH=$(VBOX_DITA_CLASSPATH)' \ 183 $2 \ 184 -- \ 185 $(VBOX_JAVA) \ 186 "-Djava.awt.headless=true" \ 187 "-Dsun.io.useCanonCaches=true" \ 188 "-Dant.home=$(VBOX_DITA_ORIGINAL_PATH)" \ 189 "-Ddita.dir=$(VBOX_DITA_ORIGINAL_PATH)" \ 190 org.apache.tools.ant.launch.Launcher \ 191 -cp "$(VBOX_DITA_CLASSPATH)" \ 192 -buildfile "$(VBOX_DITA_ORIGINAL_PATH)/build.xml" \ 193 -main "org.dita.dost.invoker.Main" \ 194 $(patsubst "/i:%,"--input=%, \ 195 $(patsubst "/transtype:%,"--format=%, \ 196 $(patsubst "/outdir:%,"--output=%, \ 197 $(patsubst "/tempdir:%,"--temp=%, \ 198 $(patsubst "/debug","--debug",$3))))) \ 199 $5 --verbose --debug 200 endif 163 201 164 202 … … 758 796 $$(QUIET)$(RM) -f -- "$$@" 759 797 $$(QUIET)$(RM) -Rf -- "$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita-ot-pdf/" 760 $$(QUIET)$$(call VBOX_DITA_RUN_DOST,$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita-ot-pdf )\798 $$(QUIET)$$(call VBOX_DITA_RUN_DOST,$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita-ot-pdf,, \ 761 799 "/i:$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita/UserManual.ditamap" \ 762 800 "/transtype:pdf" \ 763 801 "/outdir:$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)" \ 764 "/tempdir:$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita/temp_pdf" 802 "/tempdir:$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita/temp_pdf", \ 803 ,,"--logfile=$$(@D)/UserManual_pdf.log") 765 804 766 805 ditamap-to-pdf: $$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/UserManual.pdf … … 786 825 $(call MSG_L1,Building html chunks $@) 787 826 $(QUIET)$(RM) -Rf -- "$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita-ot-html-chunks/" 788 $(QUIET)$(call VBOX_DITA_RUN_DOST,$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita-ot-html-chunks )\827 $(QUIET)$(call VBOX_DITA_RUN_DOST,$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita-ot-html-chunks,, \ 789 828 "/i:$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita/UserManual.ditamap" \ 790 829 "/transtype:xhtml" \ 791 830 "/outdir:$(@D)" \ 792 "/tempdir:$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita/temp_xhtml_chunks" 831 "/tempdir:$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita/temp_xhtml_chunks" \ 832 ,,"--logfile=$(@D)/UserManual_xhtml.log") 793 833 794 834 html:: $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-chunks/index.html … … 811 851 "$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita/UserManual.ditamap" 812 852 $(QUIET)$(RM) -Rf -- "$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita-ot-html-single/" 813 $(QUIET)$(call VBOX_DITA_RUN_DOST,$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita-ot-html-single )\853 $(QUIET)$(call VBOX_DITA_RUN_DOST,$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita-ot-html-single,, \ 814 854 "/i:$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita/UserManual-Single.ditamap" \ 815 855 "/transtype:xhtml" \ 816 856 "/outdir:$(@D)" \ 817 "/tempdir:$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita/temp_xhtml_single" 857 "/tempdir:$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita/temp_xhtml_single" \ 858 ,,"--logfile=$(@D)/UserManual-Single_xhtml.log") 818 859 $(SED) -ne '1,/<body>/{p}' \ 819 860 --output "$@" "$(@D)/UserManual-Single.html" … … 900 941 $(VBOX_USER_MANUAL_CONVERTED_REFENTRY_DITA_FILES_$(1)) 901 942 $$(QUIET)$(RM) -Rf -- "$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita-ot-qhelp/" 902 $$(QUIET)$$(call VBOX_DITA_RUN_DOST,$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita-ot-qhelp, -EHHCDIR="$$(@D)" )\943 $$(QUIET)$$(call VBOX_DITA_RUN_DOST,$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita-ot-qhelp, -EHHCDIR="$$(@D)", \ 903 944 "/i:$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita/UserManual.ditamap" \ 904 945 "/transtype:htmlhelp" \ 905 946 "/outdir:$(2)" \ 906 "/tempdir:$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita/temp_qhelp" 947 "/tempdir:$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita/temp_qhelp" \ 948 ,,"--logfile=$(2)/UserManual_htmlhelp.log") 949 907 950 908 951 ditamap-to-htmlhelp: $(2)/UserManual.hhp
Note:
See TracChangeset
for help on using the changeset viewer.