[Libguestfs] [PATCH] build: ensure .pot and .pod files for docs are up-to-date
Richard W.M. Jones
rjones at redhat.com
Fri Oct 2 11:19:16 UTC 2015
On Fri, Oct 02, 2015 at 11:48:46AM +0200, Pino Toscano wrote:
> Traverse the po-docs directory before the subdirectories with translated
> documentations, so we can make sure that libguestfs-docs.pot and the
> translated .pod files have been generated. As a consequence of that,
> when generating the translated manpages for documentations, all the
> needed .pod files should be already there.
> ---
> po-docs/Makefile.am | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/po-docs/Makefile.am b/po-docs/Makefile.am
> index a274898..bf10558 100644
> --- a/po-docs/Makefile.am
> +++ b/po-docs/Makefile.am
> @@ -41,7 +41,9 @@ CLEANFILES = po4a.conf
> # language directory contains a Makefile.am that we need to keep up to
> # date (note each $lang/Makefile.am should be identical).
> # XXX Is there a better way?
> -SUBDIRS = $(linguas)
> +# The current directory is traversed first, to make sure that .pot and .pod
> +# files are up-to-date and generated before applying translations in subdirs.
> +SUBDIRS = . $(linguas)
>
> update-po: libguestfs-docs.pot
>
> @@ -88,3 +90,5 @@ podfiles: Makefile
> for f in `cat $(top_srcdir)/po/POTFILES-pl`; do echo $(top_srcdir)/$$f; done >> $@-t
> LC_ALL=C sort -o $@-t $@-t
> mv $@-t $@
> +
> +all-local: update-po
This means the PO files are going to get rebuilt on every ordinary
build. At the moment they are only updated on 'make dist'.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
More information about the Libguestfs
mailing list