VirtualBox

Changeset 68864 in vbox


Ignore:
Timestamp:
Sep 25, 2017 8:53:52 PM (7 years ago)
Author:
vboxsync
Message:

iprt,vboxmanage,manual: Try write the iso maker docs as a docbook refentry document. Tried to generalize the vboxmanage refentry output handling, moving it to RTMsg*. Made VBoxManage and IPRT generate their C/H sources in their own Makefiles. Hacked the C/H source generation till it can deal with the rather different RTIsoMaker command structure (no sub or sub-sub command stuff). [build fix]

Location:
trunk/src/VBox/Runtime
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/Makefile.kmk

    r68860 r68864  
    14381438# Generate RTIsoMaker / VISO help text from the manpage xml.
    14391439#
    1440 IPRT_XML_REFENTRY_FILES = \
    1441         common/fs/isomakercmd-man.xml
    1442 
    1443 #$(call KB_FN_DO_PASS0_ON_TARGET,RuntimeR3)
    1444 
    1445 BLDDIRS += $(IPRT_OUT_DIR)/man/
    1446 OTHER_CLEAN += \
    1447         $(addprefix $(IPRT_OUT_DIR)/man/,$(IPRT_XML_REFENTRY_FILES)) \
    1448         $(addprefix $(IPRT_OUT_DIR)/man/,$(patsubst %.xml,%.h,$(IPRT_XML_REFENTRY_FILES))) \
    1449         $(addprefix $(IPRT_OUT_DIR)/man/,$(patsubst %.xml,%.h.ts,$(IPRT_XML_REFENTRY_FILES)))
    1450 
    1451 
    1452 include $(PATH_ROOT)/doc/manual/Config.kmk
    1453 
    1454 # Preprocess the xml files, applying remarks.
    1455 $(foreach file,$(IPRT_XML_REFENTRY_FILES) \
    1456 , $(evalcall2 def_vbox_refentry_preprocess_for_manpage,$(IPRT_OUT_DIR)/man,$(notdir $(file)),$(VBOX_PATH_RUNTIME_SRC)/$(file)))
    1457 
    1458 # generate the header and add it as a dependency to the source using it.
    1459 $(evalcall2 def_vbox_single_refentry_to_h,$(IPRT_OUT_DIR)/man/isomakercmd-man.h, $(IPRT_OUT_DIR)/man/isomakercmd-man.xml)
    1460 common/fs/isomakercmd.cpp_DEPS = $(IPRT_OUT_DIR)/man/isomakercmd-man.h
    1461 common/fs/isomakercmd.cpp_INCS = $(IPRT_OUT_DIR)/man/
    1462 
    1463 foobar: $(IPRT_OUT_DIR)/isomakercmd-man.h.ts
     1440if1of ($(KBUILD_TARGET), os2) # breaks validationkit, figure out later.
     1441
     1442 IPRT_XML_REFENTRY_FILES = \
     1443        common/fs/isomakercmd-man.xml
     1444
     1445 #$(call KB_FN_DO_PASS0_ON_TARGET,RuntimeR3)
     1446
     1447 BLDDIRS += $(IPRT_OUT_DIR)/man/
     1448 OTHER_CLEAN += \
     1449        $(addprefix $(IPRT_OUT_DIR)/man/,$(IPRT_XML_REFENTRY_FILES)) \
     1450        $(addprefix $(IPRT_OUT_DIR)/man/,$(patsubst %.xml,%.h,$(IPRT_XML_REFENTRY_FILES))) \
     1451        $(addprefix $(IPRT_OUT_DIR)/man/,$(patsubst %.xml,%.h.ts,$(IPRT_XML_REFENTRY_FILES)))
     1452
     1453
     1454 include $(PATH_ROOT)/doc/manual/Config.kmk
     1455
     1456 # Preprocess the xml files, applying remarks.
     1457 $(foreach file,$(IPRT_XML_REFENTRY_FILES) \
     1458 , $(evalcall2 def_vbox_refentry_preprocess_for_manpage,$(IPRT_OUT_DIR)/man,$(notdir $(file)),$(VBOX_PATH_RUNTIME_SRC)/$(file)))
     1459
     1460 # generate the header and add it as a dependency to the source using it.
     1461 $(evalcall2 def_vbox_single_refentry_to_h,$(IPRT_OUT_DIR)/man/isomakercmd-man.h, $(IPRT_OUT_DIR)/man/isomakercmd-man.xml)
     1462 common/fs/isomakercmd.cpp_DEPS = $(IPRT_OUT_DIR)/man/isomakercmd-man.h
     1463 common/fs/isomakercmd.cpp_INCS = $(IPRT_OUT_DIR)/man/
     1464
     1465endif
    14641466
    14651467
  • trunk/src/VBox/Runtime/common/fs/isomakercmd.cpp

    r68860 r68864  
    667667};
    668668
    669 #include "isomakercmd-man.h"
     669#ifndef RT_OS_OS2 /* fixme */
     670# include "isomakercmd-man.h"
     671#endif
    670672
    671673
     
    812814static void rtFsIsoMakerCmdUsage(PRTFSISOMAKERCMDOPTS pOpts, const char *pszProgName)
    813815{
    814 #if 0
     816#ifdef RT_OS_OS2 /* fixme */
    815817    rtFsIsoMakerPrintf(pOpts,
    816818                       "Usage: %s [options] [@commands.rsp] <filespec1> [filespec2 [..]]\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