Revision 18e2b6e4
b/Makefile.am | ||
---|---|---|
10 | 10 |
abs_top_srcdir = @abs_top_srcdir@ |
11 | 11 |
|
12 | 12 |
ACLOCAL_AMFLAGS = -I autotools |
13 |
DOCBOOK_WRAPPER = $(top_srcdir)/autotools/docbook-wrapper |
|
14 | 13 |
BUILD_BASH_COMPLETION = $(top_srcdir)/autotools/build-bash-completion |
15 | 14 |
RUN_IN_TEMPDIR = $(top_srcdir)/autotools/run-in-tempdir |
16 | 15 |
CHECK_PYTHON_CODE = $(top_srcdir)/autotools/check-python-code |
... | ... | |
336 | 335 |
autotools/check-python-code \ |
337 | 336 |
autotools/check-man \ |
338 | 337 |
autotools/check-tar \ |
339 |
autotools/docbook-wrapper \ |
|
340 | 338 |
autotools/gen-coverage \ |
341 | 339 |
autotools/testrunner \ |
342 | 340 |
$(RUN_IN_TEMPDIR) \ |
/dev/null | ||
---|---|---|
1 |
#!/bin/sh |
|
2 |
|
|
3 |
set -e |
|
4 |
|
|
5 |
if test "$#" != 4 |
|
6 |
then |
|
7 |
echo "Wrong number of arguments." >&2 |
|
8 |
exit 1 |
|
9 |
fi |
|
10 |
|
|
11 |
cmd="${1}" |
|
12 |
input="${2}" |
|
13 |
cmdoutputfile="${3}" |
|
14 |
output="${4}" |
|
15 |
|
|
16 |
# docbook2man inserts a date formatted using the current locale into its |
|
17 |
# output. Using the "C" locale makes sure it's always in the default format. |
|
18 |
export LC_ALL=C |
|
19 |
|
|
20 |
tmpdir=`mktemp -d` |
|
21 |
trap "rm -rf ${tmpdir}" EXIT |
|
22 |
|
|
23 |
if ! ( cd `dirname ${input}` && |
|
24 |
${cmd} -o ${tmpdir} `basename "${input}"` >/dev/null; ) |
|
25 |
then |
|
26 |
echo "Building ${output} failed." >&2 |
|
27 |
exit 1 |
|
28 |
fi |
|
29 |
|
|
30 |
mv "${tmpdir}/${cmdoutputfile}" "${output}" |
|
31 |
|
|
32 |
# Needed for make to recognize output file |
|
33 |
touch "${output}" |
b/configure.ac | ||
---|---|---|
227 | 227 |
AC_PROG_INSTALL |
228 | 228 |
AC_PROG_LN_S |
229 | 229 |
|
230 |
# Check for docbook programs |
|
231 |
AC_ARG_VAR(DOCBOOK2MAN, [docbook2man path]) |
|
232 |
AC_PATH_PROG(DOCBOOK2MAN, [docbook2man], []) |
|
233 |
if test -z "$DOCBOOK2MAN" |
|
234 |
then |
|
235 |
AC_MSG_WARN([docbook2man not found, man pages rebuild will not be possible]) |
|
236 |
fi |
|
237 |
|
|
238 |
AC_ARG_VAR(DOCBOOK2HTML, [docbook2html path]) |
|
239 |
AC_PATH_PROG(DOCBOOK2HTML, [docbook2html], []) |
|
240 |
if test -z "$DOCBOOK2HTML" |
|
241 |
then |
|
242 |
AC_MSG_WARN([docbook2html not found, man pages rebuild will not be possible]) |
|
243 |
fi |
|
244 |
|
|
230 |
# Check for pandoc |
|
245 | 231 |
AC_ARG_VAR(PANDOC, [pandoc path]) |
246 | 232 |
AC_PATH_PROG(PANDOC, [pandoc], []) |
247 | 233 |
if test -z "$PANDOC" |
b/doc/devnotes.rst | ||
---|---|---|
9 | 9 |
- `GNU make <http://www.gnu.org/software/make/>`_ |
10 | 10 |
- `GNU tar <http://www.gnu.org/software/tar/>`_ |
11 | 11 |
- `Gzip <http://www.gnu.org/software/gzip/>`_ |
12 |
- `Docbook tools <http://sources.redhat.com/docbook-tools/>`_ |
|
13 |
(docbook2html and docbook2man) |
|
12 |
- `pandoc <http://johnmacfarlane.net/pandoc/>`_ |
|
14 | 13 |
- `python-sphinx <http://sphinx.pocoo.org/>`_ |
15 | 14 |
(tested with version 0.6.1) |
16 | 15 |
- `graphviz <http://www.graphviz.org/>`_ |
Also available in: Unified diff