VirtualBox

Changeset 63841 in vbox for trunk


Ignore:
Timestamp:
Sep 14, 2016 7:14:02 PM (8 years ago)
Author:
vboxsync
Message:

manual/Makefile.kmk: Don't use REDIRECT twice.

File:
1 edited

Legend:

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

    r63604 r63841  
    101101# xsltproc with the catalog trick if applicable.
    102102ifdef VBOX_XML_CATALOG
    103  VBOX_XSLTPROC_WITH_CAT    = $(REDIRECT) -E "XML_CATALOG_FILES=$(VBOX_XML_CATALOG)" -- \
     103 VBOX_XSLTPROC_WITH_CAT    = $(REDIRECT) -E "XML_CATALOG_FILES=$(VBOX_XML_CATALOG)" $1 -- \
    104104        $(VBOX_XSLTPROC) --nonet --xinclude $(VBOX_XSLTPROC_OPTS)
    105105 VBOX_XMLLINT_WITH_CAT     = $(REDIRECT) -E "XML_CATALOG_FILES=$(VBOX_XML_CATALOG)" -- \
    106106        $(VBOX_XMLLINT) --nonet --xinclude --noout $(VBOX_XMLLINT_OPTS)
    107107else
    108  VBOX_XSLTPROC_WITH_CAT    = $(VBOX_XSLTPROC) --nonet --xinclude $(VBOX_XSLTPROC_OPTS)
     108 VBOX_XSLTPROC_WITH_CAT    = $(if $(1), $(REDIRECT) $1 --,,) $(VBOX_XSLTPROC) --nonet --xinclude $(VBOX_XSLTPROC_OPTS)
    109109 VBOX_XMLLINT_WITH_CAT     = $(VBOX_XMLLINT) --nonet --xinclude --noout $(VBOX_XMLLINT_OPTS)
    110110endif
     
    477477        $$(call MSG_TOOL,xsltproc $$(notdir $$(filter %.xsl,$$^)),,$$(filter %.xml,$$^),$$@)
    478478        $$(QUIET)$$(RM) -f "$$@"
    479         $$(QUIET)$$(VBOX_XSLTPROC_WITH_CAT) --output $$@ $$(VBOX_PATH_MANUAL_SRC)/docbook-refentry-to-manual-sect1.xsl $$<
     479        $$(QUIET)$$(call VBOX_XSLTPROC_WITH_CAT) --output $$@ $$(VBOX_PATH_MANUAL_SRC)/docbook-refentry-to-manual-sect1.xsl $$<
    480480endef
    481481$(foreach lang,$(VBOX_MANUAL_LANGUAGES),$(foreach file,$(VBOX_MANUAL_XML_REFENTRY_FILES) \
     
    491491               | $$(dir $$@)
    492492        $(call MSG_TOOL,xsltproc $(notdir $(filter %.xsl,$^)),,$(firstword $(filter %.xml,$^)),$@)
    493         $(QUIET)$(VBOX_XSLTPROC_WITH_CAT) --output "$@" $< $(filter %.xml,$^)
     493        $(QUIET)$(call VBOX_XSLTPROC_WITH_CAT) --output "$@" $< $(filter %.xml,$^)
    494494
    495495$(VBOX_PATH_MANUAL_OUTBASE)/user_VBoxManage_CommandsOverview.xml: $(VBOXMANAGEHELP_PATH) $(MAKEFILE_CURRENT) | $$(dir $$@)
     
    598598#   pass current language to xsltproc in TARGETLANG variable (extract it from the
    599599#   current directory, should become "de_DE" or the like)
    600         $(QUIET)$(VBOX_XSLTPROC_WITH_CAT) --stringparam TARGETLANG $(notdir $(@D)) \
     600        $(QUIET)$(call VBOX_XSLTPROC_WITH_CAT) --stringparam TARGETLANG $(notdir $(@D)) \
    601601                -o [email protected] $(VBOX_PATH_MANUAL_SRC)/docbook2latex.xsl $<
    602602#   for pretty quotes, replace " with `` or '' depending on whether it's at the start of a word;
     
    666666#endif
    667667#       generate TeX source from processed docbook and store it in SDKRef.tex.tmp
    668         $(QUIET)$(VBOX_XSLTPROC_WITH_CAT) --stringparam TARGETLANG en_US \
     668        $(QUIET)$(call VBOX_XSLTPROC_WITH_CAT) --stringparam TARGETLANG en_US \
    669669                -o [email protected] $(VBOX_PATH_MANUAL_SRC)/docbook2latex.xsl $<
    670670#       for pretty quotes, replace " with `` or '' depending on whether it's at the start of a word;
     
    751751        $(QUIET)$(RM) -f $@
    752752        $(QUIET)$(MKDIR) -p $(@D)
    753         $(QUIET)$(VBOX_XSLTPROC_WITH_CAT) --output $(@D)/ \
     753        $(QUIET)$(call VBOX_XSLTPROC_WITH_CAT) --output $(@D)/ \
    754754                --stringparam htmlhelp.chm \
    755755                $(subst /,\\,$(@D)/../VirtualBox.chm) \
     
    800800                | $$(dir $$@)
    801801        $(call MSG_TOOL,xsltproc $(notdir $(firstword $(filter %.xsl,$^))),,$(firstword $(filter %.xml,$^)),$@)
    802         $(QUIET)$(VBOX_XSLTPROC_WITH_CAT) \
     802        $(QUIET)$(call VBOX_XSLTPROC_WITH_CAT) \
    803803                --output $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-single/UserManual.html \
    804804                $(VBOX_PATH_MANUAL_OUTBASE)/en_US/docbook-html-one-page-formatcfg.xsl \
     
    813813                | $$(dir $$@)
    814814        $(call MSG_TOOL,xsltproc $(notdir $(firstword $(filter %.xsl,$^))),,$(firstword $(filter %.xml,$^)),$@)
    815         $(QUIET)$(VBOX_XSLTPROC_WITH_CAT) \
     815        $(QUIET)$(call VBOX_XSLTPROC_WITH_CAT) \
    816816                --output $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-chunks/index.html \
    817817                --stringparam chunk.section.depth 0 \
     
    846846                $(VBOX_XML_CATALOG) $(VBOX_XML_CATALOG_DOCBOOK) | $$(dir $$@)
    847847        $(call MSG_TOOL,xsltproc $(notdir $(firstword $(filter %.xsl,$^))),,$(firstword $(filter %.xml,$^)),$@)
    848         $(QUIET)$(VBOX_XSLTPROC_WITH_CAT) --output "$@" "$<" $(filter %.xml,$^)
     848        $(QUIET)$(call VBOX_XSLTPROC_WITH_CAT) --output "$@" "$<" $(filter %.xml,$^)
    849849        $(call MSG_L1,Fresh ChangeLog.html is now at $@)
    850850
     
    875875        $$(call MSG_TOOL,xsltproc $$(notdir $$(firstword $$(filter %.xsl,$$^))),,$$(firstword $$(filter %.xml,$$^)),$$@)
    876876        $$(QUIET)$$(RM) -f "$$@"
    877         $$(QUIET)$$(VBOX_XSLTPROC_WITH_CAT) --output $$@ \
     877        $$(QUIET)$$(call VBOX_XSLTPROC_WITH_CAT) --output $$@ \
    878878                $$(VBOX_PATH_MANUAL_SRC)/docbook-refentry-to-manpage-preprocessing.xsl $$<
    879879if defined(VBOX_HAVE_XMLLINT) && "$(USER)" == "bird" # Effing stuff happends on build servers, probably kmk related...
     
    888888        $$(call MSG_TOOL,xsltproc $$(notdir $$(firstword $$(filter %.xsl,$$^))),,$$(firstword $$(filter %.xml,$$^)),$$@)
    889889        $$(QUIET)$$(RM) -f "$$@"
    890         $$(QUIET)$$(VBOX_XSLTPROC_WITH_CAT) --output $$@ $$(VBOX_PATH_MANUAL_OUTBASE)/docbook-refentry-to-manpage.xsl $$<
     890        $$(QUIET)$$(call VBOX_XSLTPROC_WITH_CAT) --output $$@ $$(VBOX_PATH_MANUAL_OUTBASE)/docbook-refentry-to-manpage.xsl $$<
    891891endef
    892892$(foreach lang,$(VBOX_MANUAL_LANGUAGES),$(foreach file,$(VBOX_MANUAL_XML_REFENTRY_FILES) \
     
    936936                ''
    937937        $(foreach refentry,$(filter %.xml,$^) \
    938         ,$(NLTAB)$(QUIET)$(REDIRECT) -a+to "$@" -- $(VBOX_XSLTPROC_WITH_CAT) $< $(refentry))
     938        ,$(NLTAB)$(QUIET)$(call VBOX_XSLTPROC_WITH_CAT, -a+to "$@") $< $(refentry))
    939939        $(QUIET)$(APPEND) -n "$@" \
    940940        '' \
     
    972972               '    HELP_CMD_VBOXMANAGE_INVALID = 0,'
    973973        $(foreach refentry,$(filter %.xml,$^) \
    974         ,$(NLTAB)$(QUIET)$(REDIRECT) -a+to "$@" -- $(VBOX_XSLTPROC_WITH_CAT) \
     974        ,$(NLTAB)$(QUIET)$(call VBOX_XSLTPROC_WITH_CAT, -a+to "$@") \
    975975                --stringparam 'g_sMode' 'cmd' $< $(refentry))
    976976        $(QUIET)$(APPEND) -n "$@" \
     
    978978                '} HELP_CMD_VBOXMANAGE;'
    979979        $(foreach refentry,$(filter %.xml,$^) \
    980         ,$(NLTAB)$(QUIET)$(REDIRECT) -a+to "$@" -- $(VBOX_XSLTPROC_WITH_CAT) \
     980        ,$(NLTAB)$(QUIET)$(call VBOX_XSLTPROC_WITH_CAT, -a+to "$@") \
    981981                --stringparam 'g_sMode' 'subcmd' $< $(refentry))
    982982        $(QUIET)$(APPEND) -n "$@" \
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