VirtualBox

Changeset 105199 in vbox for trunk/doc


Ignore:
Timestamp:
Jul 8, 2024 6:33:43 PM (7 months ago)
Author:
vboxsync
Message:

Docs: bugref:10705. Add ZIP containing generated DITA files for the DocBook changelog topics.

Location:
trunk/doc/manual
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/Makefile.kmk

    r105190 r105199  
    264264        $(VBOX_PATH_MANUAL_OUTBASE)/en_US/RefEntryDITA.zip \
    265265        $(PATH_STAGE_BIN)/RefEntryDITA.zip \
     266        $(VBOX_PATH_MANUAL_OUTBASE)/en_US/ChangeLogDITA.zip \
     267        $(PATH_STAGE_BIN)/ChangeLogDITA.zip \
    266268        $(VBOX_PATH_MANUAL_OUTBASE)/en_US/UserManual.zip \
    267269        $(PATH_STAGE_BIN)/UserManual-html.zip \
     
    339341  ifdef VBOX_WITH_DOCS_USERMANUAL_REFENTRY_DITA
    340342   #
    341    # target for installing the chunked HTML docs
     343   # target for installing the ZIP containing the manpages in DITA format
    342344   #
    343345   INSTALLS += VBox-docs-usermanual-refentry-dita
     
    346348   VBox-docs-usermanual-refentry-dita_SOURCES = $(VBOX_PATH_MANUAL_OUTBASE)/en_US/RefEntryDITA.zip
    347349   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
    348361  endif
    349362
     
    760773
    761774 $(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
    763778        $(call MSG_L1,Packing documentation $@)
    764779        $(QUIET)$(RM) -f $@
    765780        $(QUIET)$(REDIRECT) -C $(VBOX_PATH_MANUAL_OUTBASE)/en_US/ -- $(VBOX_ZIP) \
    766781                -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/%,%,$^)
    769783
    770784 refentry-dita-zip:: $(VBOX_PATH_MANUAL_OUTBASE)/en_US/RefEntryDITA.zip
     
    811825 define def_vbox_convert_changelog_to_dita
    812826  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: \
    814829                $$(VBOX_PATH_MANUAL_SRC)/docbook-changelog-to-manual-dita.sh \
    815830                $$(VBOX_PATH_MANUAL_SRC)/docbook-changelog-to-manual-dita.xsl \
     
    824839                $$(VBOX_PATH_MANUAL_SRC)/user_ChangeLogImpl.xml \
    825840                $$(VBOX_PATH_MANUAL_SRC)/docbook-changelog-to-manual-dita.xsl \
     841                $$(@).kmk \
     842                VBOX_USER_MANUAL_CONVERTED_CHANGELOG_DITA_FILES_$(1) \
    826843                $$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita/topics \
    827844                -- \
     
    829846 endef # def_vbox_convert_changelog_to_dita
    830847 $(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
    831872
    832873
  • trunk/doc/manual/docbook-changelog-to-manual-dita.sh

    r99514 r105199  
    3737#   1: user_ChangeLogImpl.xml to use as input.
    3838#   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).
    4242#
    43 if test $# -lt 6; then
     43if test $# -lt 8; then
    4444    echo "syntax error: too few arguments" 1>&2;
    4545    exit 2;
     
    4747MY_INPUT_FILE="$1"
    4848MY_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;
     49MY_GENERATED_KMK="$3"
     50MY_GENERATED_KMK_VARIABLE="$4"
     51MY_OUTPUT_DIR="$5"
     52if test "$6" != "--"; then
     53    echo "syntax error: Expected '--' as the 6th parameter, got: $6" 1>&2;
    5254    exit 2;
    5355fi
    54 shift 4
     56shift 6
    5557
    5658if ! test -f "${MY_INPUT_FILE}"; then
     
    7678MY_TOPIC_IDS=$($* --stringparam g_sMode ids "${MY_XSLT}" "${MY_INPUT_FILE}" | ${MY_SED} -e 1d)
    7779
     80echo "${MY_GENERATED_KMK_VARIABLE} += \\" > "${MY_GENERATED_KMK}"
     81
    7882#
    7983# Extract each topic.
     
    8589        --stringparam g_idTopic "${MY_ID}" \
    8690        --output "${MY_OUTPUT_DIR}/${MY_ID}.dita" "${MY_XSLT}" "${MY_INPUT_FILE}"
     91    echo "    ${MY_OUTPUT_DIR}/${MY_ID}.dita \\" >> "${MY_GENERATED_KMK}"
    8792done
    8893
     
    9196#
    9297$* --stringparam g_sMode map --output "${MY_OUTPUT_DIR}/changelog-versions.ditamap" "${MY_XSLT}" "${MY_INPUT_FILE}"
     98echo "" >> "${MY_GENERATED_KMK}"
    9399exit 0
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette