Commit 96e67f62 authored by Roland Levillain's avatar Roland Levillain
Browse files

Have configure find rst2html.

	* configure.ac: Check for rst2html.
	Define RST2HTML and use it...
	* doc/Makefile.am (contributors.html): ...here.
parent c2c03cda
2013-06-28 Roland Levillain <roland@lrde.epita.fr>
Have configure find rst2html.
* configure.ac: Check for rst2html.
Define RST2HTML and use it...
* doc/Makefile.am (contributors.html): ...here.
2013-06-18 Roland Levillain <roland@lrde.epita.fr>
Mention bibtex2html and bib2bib as documentation build dependencies.
......
......@@ -160,6 +160,25 @@ if test -z "$TESTS_CXXFLAGS_DEBUG"; then
fi
## --------------- ##
## Documentation. ##
## --------------- ##
# Tools used to build the documentation.
# rst2html can have many names, especially in the MacPorts, where
# py-docutils binaries include their version numbers in their names.
AC_ARG_VAR([RST2HTML], [reStructuredText-to-HTML translator])
AC_CHECK_PROGS([RST2HTML],
m4_do([rst2html],
[ rst2html.py],
[ rst2html-3.3.py rst2html-3.2.py rst2html-3.1.py],
[ rst2html-2.7.py rst2html-2.6.py rst2html-2.5.py rst2html-2.4.py]))
if test -z "$RST2HTML"; then
AC_MSG_WARN([rst2html not found, documentation rebuild will not be possible])
fi
## ------------------------------ ##
## ``Enable Everything'' Switch. ##
## ------------------------------ ##
......
......@@ -149,9 +149,12 @@ EXTRA_DIST += $(USER_REFMAN)
## -------------- ##
contributors.html: $(top_srcdir)/AUTHORS
rst2html --stylesheet-path=$(srcdir)/doxygen.css --link-stylesheet \
--input-encoding=latin1 --output-encoding=latin1 \
$(top_srcdir)/AUTHORS > contributors.html
@test -n "$(RST2HTML)" \
|| { echo "error: rst2html not found during configure" >&2; \
exit 1; }
$(RST2HTML) --input-encoding=latin1 --output-encoding=latin1 \
--stylesheet-path=$(srcdir)/doxygen.css --link-stylesheet \
$< >$@
## -------------- ##
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment