VirtualBox

Changeset 32024 in vbox for trunk


Ignore:
Timestamp:
Aug 27, 2010 9:01:58 AM (14 years ago)
Author:
vboxsync
Message:

manual: fixed annoying warnings about missing external entities; allow to build with DocBook from the host; some cleanup

File:
1 edited

Legend:

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

    r31761 r32024  
    173173                UserManual.fo) \
    174174        $(foreach f,$(VBOX_MANUAL_LANGUAGES), $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/$f/, \
    175                 docbook-fo-formatcfg.xsl \
    176175                docbook-htmlhelp-formatcfg.xsl \
    177176                docbook-html-one-page-formatcfg.xsl \
    178177                docbook-html-chunks-formatcfg.xsl \
    179                 titlepage-fo.xsl \
    180178                titlepage-htmlhelp.xsl )) \
    181179        $(foreach f,$(VBOX_MANUAL_LANGUAGES),$(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/$f/,$(VBOX_MANUAL_PNG_FILES_$(f)))) \
     
    215213
    216214# tool locations
    217 DOCBOOKPATH    ?= $(PATH_DEVTOOLS)/common/DocBook/v1.69.1
    218 DOCBOOKDTDPATH ?= $(PATH_DEVTOOLS)/common/docbook-xml/v4.3
     215ifndef VBOX_OSE
     216 # use docbook from our tools directory
     217 DOCBOOKPATH          ?= $(PATH_DEVTOOLS)/common/DocBook/v1.69.1
     218 DOCBOOKDTDPATH       ?= $(PATH_DEVTOOLS)/common/docbook-xml/v4.3
     219 XML_CATALOG          ?= $(VBOX_PATH_MANUAL_OUTBASE)/catalog
     220 XML_CATALOG_DOCBOOK  ?= $(VBOX_PATH_MANUAL_OUTBASE)/docbook
     221else
     222 # use docbook of the build host
     223 DOCBOOKPATH          ?= http://docbook.sourceforge.net/release/xsl/current/
     224endif
    219225VBOXMANAGEPATH ?= $(PATH_BIN)/VBoxManage$(SUFF_EXE)
    220226
     
    227233 PDFLATEX          = pdflatex $(PDFLATEX_HALT) -interaction batchmode
    228234endif
    229 
    230 DOCBOOK_HTMLHELP_XSL_CFG = $(VBOX_PATH_MANUAL_OUTBASE)/docbook-htmlhelp-formatcfg.xsl
    231 
    232 XML_CATALOG              = $(VBOX_PATH_MANUAL_OUTBASE)/catalog
    233 XML_CATALOG_DOCBOOK      = $(VBOX_PATH_MANUAL_OUTBASE)/docbook
    234 
    235 export XML_CATALOG_FILES = $(XML_CATALOG)
    236235
    237236# Windows HTML Help Workshop compiler (stupid thing always returns an error!)
     
    350349
    351350# Create a catalog file for xsltproc that points to docbook catalog.
     351ifneq ($(XML_CATALOG),)
    352352$(XML_CATALOG): $(MAKEFILE_CURRENT) | $$(dir $$@)
    353353        $(call MSG_L1,Creating catalog $@)
     
    372372        $(QUIET)$(APPEND) [email protected] '  <public publicId="-//OASIS//ELEMENTS DocBook XML Information Pool V4.3//EN"          uri="file:///$(DOCBOOKDTDPATH)/dbpoolx.mod"/>'
    373373        $(QUIET)$(APPEND) [email protected] '  <public publicId="-//OASIS//DTD DocBook XML V4.3//EN"                                uri="file:///$(DOCBOOKDTDPATH)/docbookx.dtd"/>'
     374        $(QUIET)$(APPEND) [email protected] '  <public publicId="-//OASIS//DTD DocBook XML V4.4//EN"                                uri="file:///$(DOCBOOKDTDPATH)/docbookx.dtd"/>'
    374375        $(QUIET)$(APPEND) [email protected] '  <public publicId="-//OASIS//ENTITIES DocBook XML Character Entities V4.3//EN"        uri="file:///$(DOCBOOKDTDPATH)/dbcentx.mod"/>'
    375376        $(QUIET)$(APPEND) [email protected] '  <public publicId="-//OASIS//ENTITIES DocBook XML Notations V4.3//EN"                 uri="file:///$(DOCBOOKDTDPATH)/dbnotnx.mod"/>'
     
    380381        $(QUIET)$(APPEND) [email protected] '  <rewriteSystem systemIdStartString="http://www.oasis-open.org/docbook/xml/4.3" rewritePrefix="file:///$(DOCBOOKDTDPATH)"/>'
    381382        $(QUIET)$(APPEND) [email protected] '  <rewriteURI         uriStartString="http://www.oasis-open.org/docbook/xml/4.3" rewritePrefix="file:///$(DOCBOOKDTDPATH)"/>'
     383        $(QUIET)$(APPEND) [email protected] '  <rewriteSystem systemIdStartString="http://www.oasis-open.org/docbook/xml/4.4" rewritePrefix="file:///$(DOCBOOKDTDPATH)"/>'
     384        $(QUIET)$(APPEND) [email protected] '  <rewriteURI         uriStartString="http://www.oasis-open.org/docbook/xml/4.4" rewritePrefix="file:///$(DOCBOOKDTDPATH)"/>'
    382385        $(QUIET)$(APPEND) [email protected] '  <public publicId="ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN"   uri="file:///$(DOCBOOKDTDPATH)/ent/iso-amsa.ent"/>'
    383386        $(QUIET)$(APPEND) [email protected] '  <public publicId="ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN"  uri="file:///$(DOCBOOKDTDPATH)/ent/iso-amsb.ent"/>'
     
    401404        $(QUIET)$(APPEND) [email protected] '</catalog>'
    402405        $(QUIET)$(MV) -f [email protected] $@
    403 
    404 # intermediate step to do some variable replacement in the XSL configuration
    405 $(foreach f,$(VBOX_MANUAL_LANGUAGES),$(VBOX_PATH_MANUAL_OUTBASE)/$f/docbook-fo-formatcfg.xsl): \
    406                 $(VBOX_PATH_MANUAL_SRC)/docbook-fo-formatcfg.xsl $(MAKEFILE_CURRENT) | $$(dir $$@)
    407         $(call MSG_L1,Pre-processing $(@F) to $@)
    408         $(QUIET)$(RM) -f [email protected] $@
    409         $(QUIET)$(SED) -e 's|\$$DOCBOOKPATH|$(DOCBOOKPATH)|g' \
    410                        -e 's|\$$CFGPATH|$(VBOX_PATH_MANUAL_SRC)|g' \
    411                        -e 's|\$$TARGETPATH|$(@D)|g' --output [email protected] $<
    412         $(QUIET)$(MV) -f [email protected] $@
     406endif
    413407
    414408# intermediate step to do some variable replacement in the XSL configuration
     
    420414                       -e 's|\$$CFGPATH|$(VBOX_PATH_MANUAL_SRC)|g' \
    421415                       -e 's|\$$TARGETPATH|$(@D)|g' --output [email protected] $<
    422         $(QUIET)$(MV) -f [email protected] $@
    423 
    424 # Prepare the XSL file for our title page, FO variant.
    425 $(foreach f,$(VBOX_MANUAL_LANGUAGES),$(VBOX_PATH_MANUAL_OUTBASE)/$f/titlepage-fo.xsl): \
    426                 $(VBOX_PATH_MANUAL_SRC)/titlepage-fo.xml $(DOCBOOKPATH)/template/titlepage.xsl $(MAKEFILE_CURRENT) | $$(dir $$@)
    427         $(call MSG_L1,xsltproc $<)
    428         $(QUIET)$(RM) -f [email protected] $@
    429         $(QUIET)$(VBOX_XSLTPROC) --xinclude --nonet -o [email protected] $(DOCBOOKPATH)/template/titlepage.xsl $<
    430416        $(QUIET)$(MV) -f [email protected] $@
    431417
     
    485471                $(VBOX_PATH_MANUAL_OUTBASE)/%/UserManual.tex \
    486472                $(if $(VBOX_OSE),,$(VBOX_PATH_MANUAL_OUTBASE)/%/ucs.sty) \
    487                 $(foreach f,$(VBOX_MANUAL_LANGUAGES),$(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/$f/,$(VBOX_MANUAL_PNG_FILES_$(f)))) | $$(dir $$@)
     473                $(foreach f,$(VBOX_MANUAL_LANGUAGES),\
     474                  $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/$f/,$(VBOX_MANUAL_PNG_FILES_$(f)))) | $$(dir $$@)
    488475# PDF generation via Latex: generate the .tex file
    489476        $(call MSG_L1,pdflatex $< (three passes) -> $@)
     
    505492#   pass current language to xsltproc in TARGETLANG variable (extract it from the
    506493#   current directory, should become "de_DE" or the like)
    507         $(VBOX_XSLTPROC) $(XSLTPROC_VERBOSE) --xinclude --nonet --stringparam TARGETLANG $(notdir $(@D)) -o [email protected] $(VBOX_PATH_MANUAL_SRC)/docbook2latex.xsl $<
     494        $(QUIET)$(VBOX_XSLTPROC) $(XSLTPROC_VERBOSE) --xinclude --nonet --stringparam TARGETLANG $(notdir $(@D)) -o [email protected] $(VBOX_PATH_MANUAL_SRC)/docbook2latex.xsl $<
    508495#   for pretty quotes, replace " with `` or '' depending on whether it's at the start of a word;
    509496#   the \QUOTE{} was inserted by docbook2latex.xsl for all quotes _outside_ of screen sections
     
    593580        $(QUIET)$(RM) -f $@
    594581        $(QUIET)$(MKDIR) -p $(@D)
    595         $(QUIET)$(VBOX_XSLTPROC) --xinclude --nonet --output $(@D)/ \
    596                 --stringparam htmlhelp.chm $(subst /,\\,$(@D)/../VirtualBox.chm) $(HTMLHELPOPTS) $(@D)/../docbook-htmlhelp-formatcfg.xsl \
     582        $(QUIET)$(if $(XML_CATALOG),XML_CATALOG_FILES=$(XML_CATALOG)) \
     583                $(VBOX_XSLTPROC) --xinclude --nonet --output $(@D)/ \
     584                --stringparam htmlhelp.chm \
     585                $(subst /,\\,$(@D)/../VirtualBox.chm) \
     586                $(HTMLHELPOPTS) $(@D)/../docbook-htmlhelp-formatcfg.xsl \
    597587                $<
    598588
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