Changeset 99047 in vbox for trunk/doc/manual
- Timestamp:
- Mar 19, 2023 12:45:46 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/Makefile.kmk
r99045 r99047 114 114 VBOX_DOC_XIDL_SRC = $(PATH_ROOT)/src/VBox/Main/idl/VirtualBox.xidl 115 115 VBOX_DOC_XIDL_SRC_TMP = $(VBOX_PATH_MANUAL_OUTBASE)/en_US/VirtualBox.xidl.tmp 116 117 118 ## 119 # Copies DITA-OT to $1, runs the dost.jar with /ditadir given and nukes $1 when done. 120 # 121 # Additional options for dost.jar can be specified following the call to VBOX_DITA_RUN_DOST 122 # 123 # @param 1 Temporary+unique DITA-OT path. 124 # @param 2 Additional kmk_redirect options. 125 # 126 VBOX_DITA_RUN_DOST ?= $(REDIRECT) \ 127 -E 'ANT_OPTS=-Xmx512m -Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl' \ 128 -E 'ANT_HOME=$1/tools/ant' \ 129 -E 'DITA_DIR=$1' \ 130 -E 'JAVA_HOME=$(VBOX_JAVA_HOME)' \ 131 -A 'PATH=$(HOST_PATH_SEP)$1/tools/ant/bin' \ 132 -E 'CLASSPATH=$1/lib/dost.jar' \ 133 -A 'CLASSPATH=$(HOST_PATH_SEP)$1/lib' \ 134 -A 'CLASSPATH=$(HOST_PATH_SEP)$1/lib/commons-codec-1.4.jar' \ 135 -A 'CLASSPATH=$(HOST_PATH_SEP)$1/lib/resolver.jar' \ 136 -A 'CLASSPATH=$(HOST_PATH_SEP)$1/lib/icu4j.jar' \ 137 -A 'CLASSPATH=$(HOST_PATH_SEP)$1/lib/xercesImpl.jar' \ 138 -A 'CLASSPATH=$(HOST_PATH_SEP)$1/lib/xml-apis.jar' \ 139 -A 'CLASSPATH=$(HOST_PATH_SEP)$1/lib/saxon/saxon9.jar' \ 140 -A 'CLASSPATH=$(HOST_PATH_SEP)$1/lib/saxon/saxon9-dom.jar' \ 141 $2 \ 142 -- $(ASH) $(VBOX_PATH_MANUAL_SRC)/dita-ot-copy-exec.sh "$(VBOX_DITA_ORIGINAL_PATH)" "$1" \ 143 -- $(VBOX_JAVA) -jar "$1/lib/dost.jar" "/ditadir:$1" # "/outercontrol:fail" ? 116 144 117 145 … … 332 360 VBox-docs-usermanual-l10n_INST = $(INST_BIN) 333 361 VBox-docs-usermanual-l10n_MODE = a+r,u+w 334 VBox-docs-usermanual-l10n_SOURCES = $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),$(VBOX_PATH_MANUAL_OUTBASE)/$(f)/UserManual.pdf=>UserManual_$(f).pdf) 362 VBox-docs-usermanual-l10n_SOURCES = \ 363 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),$(VBOX_PATH_MANUAL_OUTBASE)/$(f)/UserManual.pdf=>UserManual_$(f).pdf) 335 364 336 365 # … … 426 455 427 456 428 ##########################################################################################429 #430 # UserManual.pdf431 #432 ##########################################################################################433 434 # Useful aliases435 usermanual UserManual.pdf:: $(PATH_STAGE_BIN)/UserManual.pdf436 437 438 457 # 439 458 # SDKRef.pdf … … 596 615 $(QUIET)$(RM) -f $@ 597 616 $(QUIET)$(REDIRECT) -C $(PATH_STAGE_BIN) -- $(VBOX_ZIP) -9 $@ $(notdir $^) 598 599 600 ##########################################################################################601 #602 # UserManual.html603 #604 ##########################################################################################605 606 $(VBOX_PATH_MANUAL_OUTBASE)/en_US/UserManual.zip: \607 $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-chunks/index.html608 $(call MSG_L1,Packing documentation $@)609 $(QUIET)$(RM) -f $@610 $(QUIET)$(REDIRECT) -C $(VBOX_PATH_MANUAL_OUTBASE)/en_US/ -- $(VBOX_ZIP) \611 -9 -r $@ html-chunks612 613 $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-chunks/index.html: \614 $(VBOX_PATH_MANUAL_OUTBASE)/dita_common615 $(call MSG_L1,Building html chunks $@)616 $(QUIET)$(RM) -Rf -- "$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita-ot-html-chunks/"617 $(QUIET)$(call VBOX_DITA_RUN_DOST,$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita-ot-html-chunks) \618 "/i:$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita/UserManual.ditamap" \619 "/transtype:xhtml" \620 "/outdir:$(@D)" \621 "/tempdir:$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita/temp_xhtml"622 623 # disable for now624 ## bird: Remove @chunk attrib from Glossary.dita topicref and add chunk="to-content" to bootmap for single html experiments.625 ## See https://docs.oasis-open.org/dita/v1.2/os/spec/archSpec/chunking.html626 ## and https://www.oxygenxml.com/forum/post25114.html?hilit=dita%20xhtml%20chunk#p25114627 ## for further clues.628 #html:: $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-single/UserManual.html629 630 html:: $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-chunks/index.html631 qhelp:: $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/en_US/qhelp/, $(VBOX_QHELP_OUTPUT_FILES))632 html-zip:: $(VBOX_PATH_MANUAL_OUTBASE)/en_US/UserManual.zip633 617 634 618 … … 753 737 ########################################################################################## 754 738 # 739 # UserManual.html 740 # 741 ########################################################################################## 742 743 $(VBOX_PATH_MANUAL_OUTBASE)/en_US/UserManual.zip: \ 744 $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-chunks/index.html 745 $(call MSG_L1,Packing documentation $@) 746 $(QUIET)$(RM) -f $@ 747 $(QUIET)$(REDIRECT) -C $(VBOX_PATH_MANUAL_OUTBASE)/en_US/ -- $(VBOX_ZIP) \ 748 -9 -r $@ html-chunks 749 750 $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-chunks/index.html: \ 751 $(VBOX_PATH_MANUAL_OUTBASE)/dita_common 752 $(call MSG_L1,Building html chunks $@) 753 $(QUIET)$(RM) -Rf -- "$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita-ot-html-chunks/" 754 $(QUIET)$(call VBOX_DITA_RUN_DOST,$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita-ot-html-chunks) \ 755 "/i:$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita/UserManual.ditamap" \ 756 "/transtype:xhtml" \ 757 "/outdir:$(@D)" \ 758 "/tempdir:$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita/temp_xhtml" 759 760 # disable for now 761 ## bird: Remove @chunk attrib from Glossary.dita topicref and add chunk="to-content" to bootmap for single html experiments. 762 ## See https://docs.oasis-open.org/dita/v1.2/os/spec/archSpec/chunking.html 763 ## and https://www.oxygenxml.com/forum/post25114.html?hilit=dita%20xhtml%20chunk#p25114 764 ## for further clues. 765 #html:: $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-single/UserManual.html 766 767 html:: $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-chunks/index.html 768 qhelp:: $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/en_US/qhelp/, $(VBOX_QHELP_OUTPUT_FILES)) 769 html-zip:: $(VBOX_PATH_MANUAL_OUTBASE)/en_US/UserManual.zip 770 771 772 ########################################################################################## 773 # 755 774 # Use DITA-OT to create pdf/hhp out of UserManual.ditamap. See usermanual.pdf under 756 775 # DITA-OT-xxxxx/doc folder for details. 757 776 # 758 777 ########################################################################################## 759 ## Copies DITA-OT to $1, runs the dost.jar with /ditadir given and nukes $1 when done.760 ##761 ## Additional options for dost.jar can be specified following the call to VBOX_DITA_RUN_DOST762 ##763 ## @param 1 Temporary+unique DITA-OT path.764 ## @param 2 Additional kmk_redirect options.765 VBOX_DITA_RUN_DOST ?= $(REDIRECT) \766 -E 'ANT_OPTS=-Xmx512m -Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl' \767 -E 'ANT_HOME=$1/tools/ant' \768 -E 'DITA_DIR=$1' \769 -E 'JAVA_HOME=$(VBOX_JAVA_HOME)' \770 -A 'PATH=$(HOST_PATH_SEP)$1/tools/ant/bin' \771 -E 'CLASSPATH=$1/lib/dost.jar' \772 -A 'CLASSPATH=$(HOST_PATH_SEP)$1/lib' \773 -A 'CLASSPATH=$(HOST_PATH_SEP)$1/lib/commons-codec-1.4.jar' \774 -A 'CLASSPATH=$(HOST_PATH_SEP)$1/lib/resolver.jar' \775 -A 'CLASSPATH=$(HOST_PATH_SEP)$1/lib/icu4j.jar' \776 -A 'CLASSPATH=$(HOST_PATH_SEP)$1/lib/xercesImpl.jar' \777 -A 'CLASSPATH=$(HOST_PATH_SEP)$1/lib/xml-apis.jar' \778 -A 'CLASSPATH=$(HOST_PATH_SEP)$1/lib/saxon/saxon9.jar' \779 -A 'CLASSPATH=$(HOST_PATH_SEP)$1/lib/saxon/saxon9-dom.jar' \780 $2 \781 -- $(ASH) $(VBOX_PATH_MANUAL_SRC)/dita-ot-copy-exec.sh "$(VBOX_DITA_ORIGINAL_PATH)" "$1" \782 -- $(VBOX_JAVA) -jar "$1/lib/dost.jar" "/ditadir:$1" # "/outercontrol:fail" ?783 778 784 779 … … 805 800 endef 806 801 $(foreach lang,$(VBOX_MANUAL_LANGUAGES),$(evalcall2 def_ditamap_to_pdf,$(lang))) 802 803 # Useful aliases 804 usermanual UserManual.pdf:: $(PATH_STAGE_BIN)/UserManual.pdf 807 805 808 806 #
Note:
See TracChangeset
for help on using the changeset viewer.