aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2007-12-18 18:04:12 +0000
committerBadlop <badlop@process-one.net>2007-12-18 18:04:12 +0000
commit2cfa98332541ad7915fe4db7f9728fa709decaed (patch)
tree25ba984c82a2b333cbdf71d3fc2ed8ff292d3cd9 /doc
parentPurge related pep nodes at remove_user (diff)
* doc/Makefile: Support for conditional inclusion of documentation
from contributed modules * doc/guide.tex: Likewise SVN Revision: 1078
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile11
-rw-r--r--doc/guide.tex12
2 files changed, 23 insertions, 0 deletions
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}