merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 217c2d383b4c6c57de335e55e3b4943601ddc9be
parent 28542396565a8c3feb9b8a34be68410373022b6e
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date:   Thu, 20 Oct 2016 16:16:46 +0200

Configuring/Compiling texinfo documentaion, + manual stub.

Diffstat:
M.gitignore | 3+++
MMakefile.am | 4++++
Mconfigure.ac | 15+++++++++++++++
Mdoc/Makefile.am | 2++
Adoc/manual.texi | 33+++++++++++++++++++++++++++++++++
Adoc/version.texi | 4++++
6 files changed, 61 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -30,3 +30,6 @@ src/lib/test_merchant_api src/lib/test_merchant_api_home/.local/share/taler/exchange/live-keys/ taler_merchant_config.h taler_merchant_config.h.in +doc/* +!doc/*.texi +!doc/*.am diff --git a/Makefile.am b/Makefile.am @@ -1,6 +1,10 @@ # This Makefile is in the public domain SUBDIRS = src copylib examples +if WITH_DOC + SUBDIRS += doc +endif + ACLOCAL_AMFLAGS = -I m4 EXTRA_DIST = AUTHORS COPYING.GPL COPYING.AGPL COPYING.LGPL diff --git a/configure.ac b/configure.ac @@ -26,6 +26,20 @@ CFLAGS="-Wall $CFLAGS" # Checks for header files. AC_CHECK_HEADERS([stdint.h stdlib.h string.h unistd.h]) +# Check for compiling documentation +with_doc = yes +AC_MSG_CHECKING([for compiling documentation]) +AC_ARG_WITH(doc, + [AS_HELP_STRING([--with-doc], [Compile documentation])], + [AC_MSG_RESULT([given])], + [AC_MSG_RESULT(not given) + with_doc = no]) + +AS_CASE([$with_doc], + [yes], AC_CHECK_PROG([texicomp], [texi2pdf], [yes])) +AS_IF([test "x$with_doc" = "xyes" -a "x$texicomp" != "xyes"], AC_MSG_ERROR([A texinfo compiler is needed. Install texi2pdf.])) +AM_CONDITIONAL([WITH_DOC], [test "x$with_doc" = "xyes"]) + # Check for GNUnet's libgnunetutil. libgnunetutil=0 AC_MSG_CHECKING([for libgnunetutil]) @@ -267,6 +281,7 @@ examples/blog/web-common/Makefile examples/shop/Makefile examples/shop/web-common/Makefile copylib/Makefile +doc/Makefile src/Makefile src/include/Makefile src/backenddb/Makefile diff --git a/doc/Makefile.am b/doc/Makefile.am @@ -0,0 +1,2 @@ +info_TEXINFOS = manual.texi +manual_TEXINFOS = version.texi diff --git a/doc/manual.texi b/doc/manual.texi @@ -0,0 +1,33 @@ +\input texinfo @c -*-texinfo-*- +@c %**start of header +@setfilename manual.info +@include version.texi +@settitle GNU Taler, merchant backend manual @value{VERSION} + +@c Define a new index for options. +@defcodeindex op +@c Combine everything into one index (arbitrarily chosen to be the +@c concept index). +@syncodeindex op cp +@c %**end of header + +@copying +This manual is for GNU Taler merchant backend (version @value{VERSION}, @value{UPDATED}), + +Copyright @copyright{} 2016 INRIA + +@quotation +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.3 or +any later version published by the Free Software Foundation; with no +Invariant Sections, with no Front-Cover Texts, and with no Back-Cover +Texts. A copy of the license is included in the section entitled +``GNU Free Documentation License''. +@end quotation +@end copying +@c If your manual is published on paper by the FSF, it should include +@c the standard FSF Front-Cover and Back-Cover Texts, as given in +@c maintain.texi. +@printindex cp + +@bye diff --git a/doc/version.texi b/doc/version.texi @@ -0,0 +1,4 @@ +@set UPDATED 20 October 2016 +@set UPDATED-MONTH October 2016 +@set EDITION 0.0 +@set VERSION 0.0