shithub: choc

Download patch

ref: 110d279326e33d6f2e55123ec47b663286a78a6d
parent: 9771bde7807a3292e2abafd012abd4b479e2b110
author: Simon Howard <[email protected]>
date: Sun Sep 15 17:04:36 EDT 2013

Remove top-level CMDLINE documentation file and generate multiple
CMDLINE files, one for each game.

Subversion-branch: /branches/v2-branch
Subversion-revision: 2648

--- a/Makefile.am
+++ b/Makefile.am
@@ -32,7 +32,6 @@
         codeblocks/setup-res.rc
 
 DOC_FILES=                              \
-        CMDLINE                         \
         README                          \
         README.OPL                      \
         NEWS                            \
@@ -59,13 +58,6 @@
 DIST_SUBDIRS=pkg $(SUBDIRS)
 
 if HAVE_PYTHON
-
-noinst_DATA=CMDLINE
-
-# TODO: CMDLINE only documents the Doom command line, not other games.
-
-CMDLINE : src/
-	./man/docgen -p man/CMDLINE.template src/ src/doom/ > $@
 
 INSTALL : man/INSTALL.template man/simplecpp
 	./man/simplecpp < man/INSTALL.template > $@
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -27,7 +27,8 @@
          strife.cfg.5             \
          chocolate-strife.cfg.5
 
-nodist_doc_DATA=INSTALL
+nodist_doc_DATA=INSTALL CMDLINE.doom CMDLINE.heretic \
+                CMDLINE.hexen CMDLINE.strife
 
 
 
@@ -42,8 +43,11 @@
 	./docgen -g doom -m extra.cfg.template \
                  -c extended ../src/m_config.c > $@
 
+CMDLINE.doom : ../src ../src/doom
+	./docgen -p CMDLINE.template ../src/ ../src/doom/ > $@
 
 
+
 chocolate-heretic.6: ../src $(MANPAGE_GEN_FILES)
 	./docgen -g heretic -m heretic.template ../src ../src/heretic > $@
 
@@ -55,6 +59,8 @@
 	./docgen -g heretic -m extra.cfg.template \
                  -c extended ../src/m_config.c > $@
 
+CMDLINE.heretic : ../src ../src/heretic
+	./docgen -p CMDLINE.template ../src/ ../src/heretic/ > $@
 
 
 chocolate-hexen.6: ../src $(MANPAGE_GEN_FILES)
@@ -68,8 +74,11 @@
 	./docgen -g hexen -m extra.cfg.template \
                  -c extended ../src/m_config.c > $@
 
+CMDLINE.hexen : ../src ../src/hexen
+	./docgen -p CMDLINE.template ../src/ ../src/hexen/ > $@
 
 
+
 chocolate-strife.6: ../src $(MANPAGE_GEN_FILES)
 	./docgen -g strife -m strife.template ../src ../src/strife > $@
 
@@ -80,6 +89,9 @@
 chocolate-strife.cfg.5: ../src extra.cfg.template
 	./docgen -g strife -m extra.cfg.template \
                  -c extended ../src/m_config.c > $@
+
+CMDLINE.strife : ../src ../src/strife
+	./docgen -p CMDLINE.template ../src/ ../src/strife/ > $@
 
 
 
--- a/pkg/config.make.in
+++ b/pkg/config.make.in
@@ -23,7 +23,5 @@
             COPYING      \
             ChangeLog    \
             NEWS         \
-            NOT-BUGS     \
-            CMDLINE      \
-            TODO
+            NOT-BUGS