Skip to contentSkip to conversation

[6884] Syncing documentation vs.

Qemu-devel Blue Swirl 1 participant 1 message Mar 28, 2009 Kbuild

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

Revision: 6884

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6884
Author:   blueswir1
Date:     2009-03-28 06:44:27 +0000 (Sat, 28 Mar 2009)

Log Message:
-----------
Syncing documentation vs. -help vs. qemu_options table

Try to keep documentation about command line switches, -help text and qemu_options table synchronized.

In true Qemu tradition, an include file is generated from single .hx file containing all relevant information in one place. The include file is parsed once for getting the enums, another time for getopt tables and hird time for help messages. Texi documentation for the options is generated from the same .hx file.

Modified Paths:
--------------
trunk/Makefile
trunk/Makefile.target
trunk/qemu-doc.texi
trunk/vl.c

Added Paths:
-----------
trunk/hxtool
trunk/qemu-options.hx

Modified: trunk/Makefile
===================================================================

Makefile +7 -4
@@ -283,14 +283,17 @@
 
 # documentation
 %.html: %.texi
-	texi2html -monolithic -number $<
+	texi2html -I=. -monolithic -number $<
 
 %.info: %.texi
-	makeinfo $< -o $@
+	makeinfo -I . $< -o $@
 
 %.dvi: %.texi
-	texi2dvi $<
+	texi2dvi -I . $<
 
+qemu-options.texi: $(SRC_PATH)/qemu-options.hx
+	sh ./hxtool -t < $< > $@
+
 qemu.1: qemu-doc.texi
 	perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu.pod
 	pod2man --section=1 --center=" " --release=" " qemu.pod > $@
@@ -309,7 +312,7 @@
 
 html: qemu-doc.html qemu-tech.html
 
-qemu-doc.dvi qemu-doc.html qemu-doc.info: qemu-img.texi qemu-nbd.texi
+qemu-doc.dvi qemu-doc.html qemu-doc.info: qemu-img.texi qemu-nbd.texi qemu-options.texi
 
 VERSION ?= $(shell cat VERSION)
 FILE = qemu-$(VERSION)

Modified: trunk/Makefile.target
===================================================================

Makefile.target +6 -1
@@ -729,6 +729,8 @@
 main.o: CFLAGS+=-p
 endif
 
+vl.o: qemu-options.h
+
 $(QEMU_PROG): LIBS += $(SDL_LIBS) $(COCOA_LIBS) $(CURSES_LIBS) $(BRLAPI_LIBS) $(VDE_LIBS)
 
 $(QEMU_PROG): $(OBJS) ../libqemu_common.a libqemu.a
@@ -744,8 +746,11 @@
 	$(SHELL) $(SRC_PATH)/feature_to_c.sh $@ $(TARGET_XML_FILES)
 endif
 
+qemu-options.h: $(SRC_PATH)/qemu-options.hx
+	sh ../hxtool -h < $< > $@
+
 clean:
-	rm -f *.o *.a *~ $(PROGS) nwfpe/*.o fpu/*.o
+	rm -f *.o *.a *~ $(PROGS) nwfpe/*.o fpu/*.o qemu-options.h
 	rm -f *.d */*.d tcg/*.o
 
 install: all

Added: trunk/hxtool
===================================================================

hxtool +42 -0

42 lines not on this page · raw message

Modified: trunk/qemu-doc.texi
===================================================================

qemu-doc.texi +1 -974

982 lines not on this page · raw message

Added: trunk/qemu-options.hx
===================================================================

qemu-options.hx +1462 -0

1,462 lines not on this page · raw message

Modified: trunk/vl.c
===================================================================

vl.c +33 -399

466 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.