From 2ac909b51f542a876a058f7210c846f9fc53cc19 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 25 Dec 2006 02:40:14 +0000 Subject: Fix up some text escaping errors. Add wikitext output for docgen. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 809 --- man/Makefile.am | 2 +- man/docgen | 103 +++++++++++++++++++++++++++++++++++++++++++++++--------- 2 files changed, 89 insertions(+), 16 deletions(-) diff --git a/man/Makefile.am b/man/Makefile.am index fb339fc4..c0bccd1a 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -6,5 +6,5 @@ man_MANS=chocolate-doom.6 EXTRA_DIST = $(man_MANS) $(MANPAGE_GEN_FILES) chocolate-doom.6: $(MANPAGE_GEN_FILES) - ./docgen > $@ + ./docgen -m > $@ diff --git a/man/docgen b/man/docgen index c83cb901..f9bf1a6e 100755 --- a/man/docgen +++ b/man/docgen @@ -1,5 +1,22 @@ #!/usr/bin/env python - +# +# Command line parameter self-documentation tool. Reads comments from +# the source code in the following form: +# +# //! +# // @arg +# // @category Category +# // @platform 1 and sys.argv[1] == "-m": + manpage_output() +elif len(sys.argv) > 1 and sys.argv[1] == "-w": + wiki_output() +else: + print "%s [ -m | -w ]" % sys.argv[0] -- cgit v1.2.3