]> granicus.if.org Git - ejabberd/commitdiff
* doc/Makefile: Support for conditional inclusion of documentation
authorBadlop <badlop@process-one.net>
Tue, 18 Dec 2007 18:04:12 +0000 (18:04 +0000)
committerBadlop <badlop@process-one.net>
Tue, 18 Dec 2007 18:04:12 +0000 (18:04 +0000)
from contributed modules
* doc/guide.tex: Likewise

SVN Revision: 1078

ChangeLog
doc/Makefile
doc/guide.tex

index 1d278be0239e0b457f841c4d20789076ef0298ad..5b11c04493968486dce50f0814a34e63f969a8b2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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
index 2bda03c6fe31284edd6045729cc83e1fbeb7a1ab..b579793c751684711759a0c92a369b40e6cf0e20 100644 (file)
@@ -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
 
index c083fcdd07a62968fd5061fedd58171fd1739372..2d664a478592dc9e4e19f31a9600d881ffc57bc9 100644 (file)
 \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}