- Timestamp:
- Jul 8, 2024 6:33:43 PM (7 months ago)
- Location:
- trunk/doc/manual
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/Makefile.kmk
r105190 r105199 264 264 $(VBOX_PATH_MANUAL_OUTBASE)/en_US/RefEntryDITA.zip \ 265 265 $(PATH_STAGE_BIN)/RefEntryDITA.zip \ 266 $(VBOX_PATH_MANUAL_OUTBASE)/en_US/ChangeLogDITA.zip \ 267 $(PATH_STAGE_BIN)/ChangeLogDITA.zip \ 266 268 $(VBOX_PATH_MANUAL_OUTBASE)/en_US/UserManual.zip \ 267 269 $(PATH_STAGE_BIN)/UserManual-html.zip \ … … 339 341 ifdef VBOX_WITH_DOCS_USERMANUAL_REFENTRY_DITA 340 342 # 341 # target for installing the chunked HTML docs343 # target for installing the ZIP containing the manpages in DITA format 342 344 # 343 345 INSTALLS += VBox-docs-usermanual-refentry-dita … … 346 348 VBox-docs-usermanual-refentry-dita_SOURCES = $(VBOX_PATH_MANUAL_OUTBASE)/en_US/RefEntryDITA.zip 347 349 VBOX_MANUAL_PACK += $(PATH_STAGE_BIN)/RefEntryDITA.zip 350 endif 351 352 ifdef VBOX_WITH_DOCS_USERMANUAL_CHANGELOG_DITA 353 # 354 # target for installing the ZIP containing the change log in DITA format 355 # 356 INSTALLS += VBox-docs-usermanual-changelog-dita 357 VBox-docs-usermanual-changelog-dita_INST = $(INST_BIN) 358 VBox-docs-usermanual-changelog-dita_MODE = a+r,u+w 359 VBox-docs-usermanual-changelog-dita_SOURCES = $(VBOX_PATH_MANUAL_OUTBASE)/en_US/ChangeLogDITA.zip 360 VBOX_MANUAL_PACK += $(PATH_STAGE_BIN)/ChangeLogDITA.zip 348 361 endif 349 362 … … 760 773 761 774 $(VBOX_PATH_MANUAL_OUTBASE)/en_US/RefEntryDITA.zip: \ 762 $(VBOX_USER_MANUAL_CONVERTED_REFENTRY_DITA_FILES_en_US) 775 $(VBOX_USER_MANUAL_CONVERTED_REFENTRY_DITA_FILES_en_US) \ 776 $(VBOX_USER_MANUAL_CONVERTED_REFENTRY_DITA_FILES2_en_US) \ 777 $(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita/topics/vboxmanage-cmd-overview.dita 763 778 $(call MSG_L1,Packing documentation $@) 764 779 $(QUIET)$(RM) -f $@ 765 780 $(QUIET)$(REDIRECT) -C $(VBOX_PATH_MANUAL_OUTBASE)/en_US/ -- $(VBOX_ZIP) \ 766 781 -9 -r "$@" \ 767 $(patsubst $(VBOX_PATH_MANUAL_OUTBASE)/en_US/%,%,$(VBOX_USER_MANUAL_CONVERTED_REFENTRY_DITA_FILES_en_US)) \ 768 $(patsubst $(VBOX_PATH_MANUAL_OUTBASE)/en_US/%,%,$(VBOX_USER_MANUAL_CONVERTED_REFENTRY_DITA_FILES2_en_US)) 782 $(patsubst $(VBOX_PATH_MANUAL_OUTBASE)/en_US/%,%,$^) 769 783 770 784 refentry-dita-zip:: $(VBOX_PATH_MANUAL_OUTBASE)/en_US/RefEntryDITA.zip … … 811 825 define def_vbox_convert_changelog_to_dita 812 826 VBOX_USER_MANUAL_DITA_STAGED_FILES_$1 += $$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita/topics/changelog-versions.ditamap 813 $$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita/topics/changelog-versions.ditamap: \ 827 $$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita/topics/changelog-versions.ditamap \ 828 + $$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita/topics/changelog-versions.ditamap.kmk: \ 814 829 $$(VBOX_PATH_MANUAL_SRC)/docbook-changelog-to-manual-dita.sh \ 815 830 $$(VBOX_PATH_MANUAL_SRC)/docbook-changelog-to-manual-dita.xsl \ … … 824 839 $$(VBOX_PATH_MANUAL_SRC)/user_ChangeLogImpl.xml \ 825 840 $$(VBOX_PATH_MANUAL_SRC)/docbook-changelog-to-manual-dita.xsl \ 841 $$(@).kmk \ 842 VBOX_USER_MANUAL_CONVERTED_CHANGELOG_DITA_FILES_$(1) \ 826 843 $$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita/topics \ 827 844 -- \ … … 829 846 endef # def_vbox_convert_changelog_to_dita 830 847 $(foreach lang,$(VBOX_MANUAL_ALL_LANGUAGES),$(evalcall2 def_vbox_convert_changelog_to_dita,$(lang))) 848 849 ifdef VBOX_ONLY_DOCS 850 include $(VBOX_PATH_MANUAL_OUTBASE)/changelog.kmk 851 852 $(VBOX_PATH_MANUAL_OUTBASE)/changelog.kmk: \ 853 $(foreach lang,$(VBOX_MANUAL_ALL_LANGUAGES) \ 854 ,$(VBOX_PATH_MANUAL_OUTBASE)/$(lang)/dita/topics/changelog-versions.ditamap.kmk) 855 $(QUIET)$(RM) -f -- "$@" 856 $(APPEND) -tn "$@" '# changelog.kmk' 857 $(APPEND) -n "$@" $(foreach lang,$(VBOX_MANUAL_ALL_LANGUAGES),'include $(VBOX_PATH_MANUAL_OUTBASE)/$(lang)/dita/topics/changelog-versions.ditamap.kmk') 858 $(APPEND) -n "$@" '# done' 859 860 endif 861 862 $(VBOX_PATH_MANUAL_OUTBASE)/en_US/ChangeLogDITA.zip: \ 863 $(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita/topics/changelog-versions.ditamap \ 864 $(VBOX_USER_MANUAL_CONVERTED_CHANGELOG_DITA_FILES_en_US) 865 $(call MSG_L1,Packing documentation $@) 866 $(QUIET)$(RM) -f $@ 867 $(QUIET)$(REDIRECT) -C $(VBOX_PATH_MANUAL_OUTBASE)/en_US/ -- $(VBOX_ZIP) \ 868 -9 -r "$@" \ 869 $(patsubst $(VBOX_PATH_MANUAL_OUTBASE)/en_US/%,%,$^) 870 871 changelog-dita-zip:: $(VBOX_PATH_MANUAL_OUTBASE)/en_US/ChangeLogDITA.zip 831 872 832 873 -
trunk/doc/manual/docbook-changelog-to-manual-dita.sh
r99514 r105199 37 37 # 1: user_ChangeLogImpl.xml to use as input. 38 38 # 2: docbook-changelog-to-manual-dita.xsl 39 # 3: The out directory.40 # 4: '--'41 # 5+: xsltproc invocation (sans output, input and xslt file).39 # 5: The out directory. 40 # 6: '--' 41 # 7+: xsltproc invocation (sans output, input and xslt file). 42 42 # 43 if test $# -lt 6; then43 if test $# -lt 8; then 44 44 echo "syntax error: too few arguments" 1>&2; 45 45 exit 2; … … 47 47 MY_INPUT_FILE="$1" 48 48 MY_XSLT="$2" 49 MY_OUTPUT_DIR="$3" 50 if test "$4" != "--"; then 51 echo "syntax error: Expected '--' as the 4th parameter, got: $4" 1>&2; 49 MY_GENERATED_KMK="$3" 50 MY_GENERATED_KMK_VARIABLE="$4" 51 MY_OUTPUT_DIR="$5" 52 if test "$6" != "--"; then 53 echo "syntax error: Expected '--' as the 6th parameter, got: $6" 1>&2; 52 54 exit 2; 53 55 fi 54 shift 456 shift 6 55 57 56 58 if ! test -f "${MY_INPUT_FILE}"; then … … 76 78 MY_TOPIC_IDS=$($* --stringparam g_sMode ids "${MY_XSLT}" "${MY_INPUT_FILE}" | ${MY_SED} -e 1d) 77 79 80 echo "${MY_GENERATED_KMK_VARIABLE} += \\" > "${MY_GENERATED_KMK}" 81 78 82 # 79 83 # Extract each topic. … … 85 89 --stringparam g_idTopic "${MY_ID}" \ 86 90 --output "${MY_OUTPUT_DIR}/${MY_ID}.dita" "${MY_XSLT}" "${MY_INPUT_FILE}" 91 echo " ${MY_OUTPUT_DIR}/${MY_ID}.dita \\" >> "${MY_GENERATED_KMK}" 87 92 done 88 93 … … 91 96 # 92 97 $* --stringparam g_sMode map --output "${MY_OUTPUT_DIR}/changelog-versions.ditamap" "${MY_XSLT}" "${MY_INPUT_FILE}" 98 echo "" >> "${MY_GENERATED_KMK}" 93 99 exit 0
Note:
See TracChangeset
for help on using the changeset viewer.