- Timestamp:
- Jun 18, 2015 8:08:45 PM (9 years ago)
- Location:
- trunk/doc/manual
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/Makefile.kmk
r56541 r56542 426 426 # $(QUIET)$(INSTALL) -m 0644 $< $@ 427 427 428 # Manual dependency on user_ChangeLogImpl.xml 429 $(foreach lang,$(VBOX_MANUAL_LANGUAGES) \ 430 ,$(eval $(VBOX_PATH_MANUAL_OUTBASE)/$(lang)/user_ChangeLog.xml: $(VBOX_PATH_MANUAL_SRC)/user_ChangeLogImpl.xml)) 431 428 432 # intermediate step to do some variable replacement in the document 429 $(foreach f,$(VBOX_MANUAL_LANGUAGES),$(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/$f/,$(filter-out user_VBoxManage.xml,$(VBOX_MANUAL_XML_FILES)))): \ 433 $(foreach f,$(VBOX_MANUAL_LANGUAGES) \ 434 ,$(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/$f/,$(filter-out user_VBoxManage.xml,$(VBOX_MANUAL_XML_FILES_INCL_CHANGELOG)))): \ 430 435 $(VBOX_PATH_MANUAL_OUTBASE)/% : $(VBOX_PATH_MANUAL_SRC)/% $(VBOX_VERSION_STAMP) | $$(dir $$@) 431 436 $(call MSG_L1,Pre-processing [1] $(@F) to $@) … … 438 443 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \ 439 444 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \ 445 -e 's|@VBOX_PATH_MANUAL_SRC@|$(VBOX_PATH_MANUAL_SRC)|g' \ 440 446 --output [email protected] $< 441 447 $(QUIET)$(MV) -f [email protected] $@ 442 443 $(foreach f,$(VBOX_MANUAL_LANGUAGES),$(VBOX_PATH_MANUAL_OUTBASE)/$f/user_ChangeLog.xml): \444 $(VBOX_PATH_MANUAL_OUTBASE)/% : \445 $(VBOX_PATH_MANUAL_SRC)/% $(VBOX_PATH_MANUAL_SRC)/user_ChangeLogImpl.xml | $$(dir $$@)446 $(call MSG_L1,Pre-processing [3] $(@F) to $@)447 $(QUIET)$(RM) -f $@ [email protected] [email protected]448 $(QUIET)$(SED) -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \449 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \450 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \451 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \452 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \453 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \454 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \455 --output [email protected] $<456 $(QUIET)$(SED) -e '1,/<!--@VIRTUALBOX_CHANGELOG_IMPL@-->/!d' \457 -e 's/<!--@VIRTUALBOX_CHANGELOG_IMPL@-->//' \458 --output $@ [email protected]459 var=`$(SED) -n '/!--@VIRTUALBOX_CHANGELOG_IMPL@-->/p' $<`; \460 test -n "$${var}" \461 && $(SED) -e 's/<?xml version=\"1.0\" encoding=\"UTF-8\"?>//g' \462 --append $@ $(VBOX_PATH_MANUAL_SRC)/user_ChangeLogImpl.xml; \463 true464 $(QUIET)$(SED) -e '/<!--@VIRTUALBOX_CHANGELOG_IMPL@-->/,$$!d' \465 -e 's/<!--@VIRTUALBOX_CHANGELOG_IMPL@-->//' --append $@ [email protected]466 $(QUIET)$(RM) -f -- "[email protected]"467 448 468 449 # TODO: figure why the rule below doesn't cause kmk to rebuild the manual when a man page changes! … … 524 505 $$(VBOX_XML_CATALOG) $(VBOX_XML_CATALOG_DOCBOOK) \ 525 506 $$(VBOX_VERSION_STAMP) | $$(dir $$@) 526 $$(call MSG_ GENERATE,,$$@,$$<)507 $$(call MSG_TOOL,xsltproc $$(notdir $$(filter %.xsl,$$^)),,$$(filter %.xml,$$^),$$@) 527 508 $$(QUIET)$$(RM) -f "$$@" 528 509 $$(QUIET)$$(VBOX_XSLTPROC_WITH_CAT) --output $$@ $$(VBOX_PATH_MANUAL_SRC)/docbook-refentry-to-manual-sect1.xsl $$< … … 539 520 $(VBOX_XML_CATALOG) $(VBOX_XML_CATALOG_DOCBOOK) \ 540 521 | $$(dir $$@) 541 $(call MSG_ GENERATE,,$@,$(filter %.xml,$^))522 $(call MSG_TOOL,xsltproc $(notdir $(filter %.xsl,$^)),,$(firstword $(filter %.xml,$^)),$@) 542 523 $(QUIET)$(VBOX_XSLTPROC_WITH_CAT) --output "$@" $< $(filter %.xml,$^) 543 524 … … 624 605 $(if $(VBOX_HAVE_XMLLINT),$(VBOX_PATH_MANUAL_OUTBASE)/%/validatemanual.run,) \ 625 606 $(VBOX_XML_CATALOG) $(VBOX_XML_CATALOG_DOCBOOK) $(MAKEFILE_CURRENT) 626 $(call MSG_ L1,Generating $@ from DocBook XML)607 $(call MSG_TOOL,xsltproc $(notdir $(filter %.xsl,$^)),,$(firstword $(filter %.xml,$^)),$@) 627 608 $(QUIET)$(RM) -f $(addprefix $(@D)/,$(VBOX_MANUAL_LATEX_FILES_TARGET)) 628 609 # generate TeX source from processed docbook and store it in UserManual.tex.tmp; … … 709 690 $(VBOX_PATH_MANUAL_SRC)/docbook2latex.xsl \ 710 691 $(VBOX_XML_CATALOG) $(VBOX_XML_CATALOG_DOCBOOK) $(MAKEFILE_CURRENT) | $$(dir $$@) 711 $(call MSG_ L1,Generating $@ from DocBook XML)692 $(call MSG_TOOL,xsltproc $(notdir $(filter %.xsl,$^)),,$(firstword $(filter %.xml,$^)),$@) 712 693 $(QUIET)$(RM) -f $(addprefix $(@D/),$(VBOX_SDKREF_LATEX_FILES_TARGET)) 713 694 # generate TeX source from processed docbook and store it in SDKRef.tex.tmp … … 794 775 $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/%/,$(VBOX_MANUAL_XML_FILES_INCL_CHANGELOG)) \ 795 776 $(VBOX_XML_CATALOG) $(VBOX_XML_CATALOG_DOCBOOK) 796 $(call MSG_ L1,xsltproc $<,=>$@)777 $(call MSG_TOOL,xsltproc $(notdir $(firstword $(filter %.xsl,$^))),,$(firstword $(filter %.xml,$^)),$@) 797 778 $(QUIET)$(RM) -f $@ 798 779 $(QUIET)$(MKDIR) -p $(@D) … … 845 826 $(VBOX_XML_CATALOG) $(VBOX_XML_CATALOG_DOCBOOK) \ 846 827 | $$(dir $$@) 847 $(call MSG_ L1,xsltproc $<)828 $(call MSG_TOOL,xsltproc $(notdir $(firstword $(filter %.xsl,$^))),,$(firstword $(filter %.xml,$^)),$@) 848 829 $(QUIET)$(VBOX_XSLTPROC_WITH_CAT) \ 849 830 --output $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-single/UserManual.html \ … … 858 839 $(VBOX_XML_CATALOG) $(VBOX_XML_CATALOG_DOCBOOK) \ 859 840 | $$(dir $$@) 860 $(call MSG_ L1,xsltproc $<)841 $(call MSG_TOOL,xsltproc $(notdir $(firstword $(filter %.xsl,$^))),,$(firstword $(filter %.xml,$^)),$@) 861 842 $(QUIET)$(VBOX_XSLTPROC_WITH_CAT) \ 862 843 --output $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-chunks/index.html \ … … 891 872 $(VBOX_PATH_MANUAL_OUTBASE)/en_US/user_ChangeLog.xml \ 892 873 $(VBOX_XML_CATALOG) $(VBOX_XML_CATALOG_DOCBOOK) | $$(dir $$@) 874 $(call MSG_TOOL,xsltproc $(notdir $(firstword $(filter %.xsl,$^))),,$(firstword $(filter %.xml,$^)),$@) 893 875 $(QUIET)$(VBOX_XSLTPROC_WITH_CAT) --output "$@" "$<" $(filter %.xml,$^) 894 876 $(call MSG_L1,Fresh ChangeLog.html is now at $@) … … 918 900 $$(VBOX_XML_CATALOG) $(VBOX_XML_CATALOG_DOCBOOK) \ 919 901 $$(VBOX_VERSION_STAMP) | $$$$(dir $$$$@) 920 $$(call MSG_ GENERATE,,$$@,$$<)902 $$(call MSG_TOOL,xsltproc $$(notdir $$(firstword $$(filter %.xsl,$$^))),,$$(firstword $$(filter %.xml,$$^)),$$@) 921 903 $$(QUIET)$$(RM) -f "$$@" 922 904 $$(QUIET)$$(VBOX_XSLTPROC_WITH_CAT) --output $$@ \ … … 931 913 $$(VBOX_XML_CATALOG) $(VBOX_XML_CATALOG_DOCBOOK) \ 932 914 $$(VBOX_VERSION_STAMP) | $$$$(dir $$$$@) 933 $$(call MSG_ GENERATE,,$$@,$$<)915 $$(call MSG_TOOL,xsltproc $$(notdir $$(firstword $$(filter %.xsl,$$^))),,$$(firstword $$(filter %.xml,$$^)),$$@) 934 916 $$(QUIET)$$(RM) -f "$$@" 935 917 $$(QUIET)$$(VBOX_XSLTPROC_WITH_CAT) --output $$@ $$(VBOX_PATH_MANUAL_OUTBASE)/docbook-refentry-to-manpage.xsl $$< … … 968 950 $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/en_US/,$(filter man_VBoxManage-%,$(VBOX_MANUAL_XML_REFENTRY_FILES))) \ 969 951 $(VBOX_XML_CATALOG) $(VBOX_XML_CATALOG_DOCBOOK) $(MAKEFILE) | $$(dir $$@) 970 $(call MSG_ GENERATE,,$@,$<)952 $(call MSG_TOOL,xsltproc $(notdir $(firstword $(filter %.xsl,$^))),,$(filter %.xml,$^),$@) 971 953 $(QUIET)$(APPEND) -tn "$@" \ 972 954 '/* Autogenerated by $<, do not edit! */' \ … … 991 973 $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/en_US/,$(filter man_VBoxManage-%,$(VBOX_MANUAL_XML_REFENTRY_FILES))) \ 992 974 $(VBOX_XML_CATALOG) $(VBOX_XML_CATALOG_DOCBOOK) $(MAKEFILE) | $$(dir $$@) 993 $(call MSG_ GENERATE,,$@,$<)975 $(call MSG_TOOL,xsltproc $(notdir $(firstword $(filter %.xsl,$^))),,$(filter %.xml,$^),$@) 994 976 $(QUIET)$(APPEND) -tn "$@" \ 995 977 '/* Autogenerated by $<, do not edit! */' \ -
trunk/doc/manual/en_US/user_ChangeLog.xml
r56541 r56542 14 14 In addition, each build contains a revision number.</para> 15 15 16 <!--@VIRTUALBOX_CHANGELOG_IMPL@--> 16 <xi:include href="@VBOX_PATH_MANUAL_SRC@/user_ChangeLogImpl.xml" xpointer="xpointer(/chapter/*)" 17 xmlns:xi="http://www.w3.org/2001/XInclude" /> 17 18 18 19 <sect1> -
trunk/doc/manual/user_ChangeLogImpl.xml
r56194 r56542 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 3 <chapter> <!-- HACK ALERT! Seems we must have a single top level element for xi:include to work. 4 So, we use chapter and xpointer="xpointer(/chapter/)" with xi:include. --> 3 5 <sect1> 4 6 <title>Version 5.0.0 Release Candidate 1 (2015-06-01)</title> … … 12424 12426 12425 12427 </sect1> 12426 12428 </chapter> 12429
Note:
See TracChangeset
for help on using the changeset viewer.