From 2cfa98332541ad7915fe4db7f9728fa709decaed Mon Sep 17 00:00:00 2001 From: Badlop Date: Tue, 18 Dec 2007 18:04:12 +0000 Subject: [PATCH] * doc/Makefile: Support for conditional inclusion of documentation from contributed modules * doc/guide.tex: Likewise SVN Revision: 1078 --- ChangeLog | 6 ++++++ doc/Makefile | 11 +++++++++++ doc/guide.tex | 12 ++++++++++++ 3 files changed, 29 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1d278be02..5b11c0449 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-12-18 Badlop + + * doc/Makefile: Support for conditional inclusion of documentation + from contributed modules + * doc/guide.tex: Likewise + 2007-12-18 Christophe Romain * src/mod_pubsub/mod_pubsub.erl: Purge related pep nodes at remove_user diff --git a/doc/Makefile b/doc/Makefile index 2bda03c6f..b579793c7 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,5 +1,14 @@ # $Id$ +CONTRIBUTED_MODULES = "" +ifeq ($(shell ls mod_http_bind.tex),mod_http_bind.tex) + CONTRIBUTED_MODULES += "\\r\\n\\setboolean{modhttpbind}{true}" +endif +ifeq ($(shell ls mod_http_fileserver.tex),mod_http_fileserver.tex) + CONTRIBUTED_MODULES += "\\r\\n\\setboolean{modhttpfileserver}{true}" +endif + + all: release pdf html release: @@ -11,6 +20,8 @@ release: @read foo @echo "% ejabberd version (automatically generated)." > version.tex @echo "\\\newcommand{\\\version}{"`cat ../src/ejabberd.hrl | grep VERSION | sed s/-define\(VERSION,\ \"//g | sed s/\"\).//g`"}" >> version.tex + @echo -n "% Contributed modules (automatically generated)." > contributed_modules.tex + @echo "$(CONTRIBUTED_MODULES)" >> contributed_modules.tex html: guide.html dev.html features.html diff --git a/doc/guide.tex b/doc/guide.tex index c083fcdd0..2d664a478 100644 --- a/doc/guide.tex +++ b/doc/guide.tex @@ -87,6 +87,14 @@ \newcommand{\modvcardodbc}{\module{mod\_vcard\_odbc}} \newcommand{\modversion}{\module{mod\_version}} +%% Contributed modules +\usepackage{ifthen} +\newboolean{modhttpbind} +\newcommand{\modhttpbind}{\module{mod\_http\_bind}} +\newboolean{modhttpfileserver} +\newcommand{\modhttpfileserver}{\module{mod\_http\_fileserver}} +\include{contributed_modules} + %% Common options \newcommand{\iqdiscitem}[1]{\titem{iqdisc} \ind{options!iqdisc}This specifies the processing discipline for #1 IQ queries (see section~\ref{modiqdiscoption}).} @@ -2063,6 +2071,10 @@ Example: Mirror, mirror, on the wall, who is the most beautiful ]}. \end{verbatim} +\ifthenelse{\boolean{modhttpbind}}{\input{mod_http_bind.tex}}{} + +\ifthenelse{\boolean{modhttpfileserver}}{\input{mod_http_fileserver.tex}}{} + \subsection{\modirc{}} \label{modirc} \ind{modules!\modirc{}}\ind{IRC}