+2007-12-18 Badlop <badlop@process-one.net>
+
+ * doc/Makefile: Support for conditional inclusion of documentation
+ from contributed modules
+ * doc/guide.tex: Likewise
+
2007-12-18 Christophe Romain <christophe.romain@process-one.net>
* src/mod_pubsub/mod_pubsub.erl: Purge related pep nodes at remove_user
# $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:
@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
\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}).}
]}.
\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}