[PATCH] Add a Makefile target to create a set of empty .po files.

Vratislav Podzimek vpodzime at redhat.com
Wed Mar 26 14:51:03 UTC 2014


On Wed, 2014-03-26 at 10:34 -0400, David Shea wrote:
> This could be handy for certain test situations where the presence of
> translation files is necessary for a build but the content of them
> doesn't matter.
> ---
>  Makefile.am | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/Makefile.am b/Makefile.am
> index 724124f..21bcd05 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -55,6 +55,9 @@ po-pull:
>  	rpm -q transifex-client &>/dev/null || ( echo "need to run: yum install transifex-client"; exit 1 )
>  	tx pull $(TX_PULL_ARGS)
>  
> +po-empty:
> +	for lingua in $$(grep -v '^#' $(srcdir)/po/LINGUAS) ; do msginit -i $(srcdir)/po/$(PACKAGE_NAME).pot -o $(srcdir)/po/$$lingua.po --no-translator ; done
> +
>  scratch: po-pull
>  	$(MAKE) ARCHIVE_TAG=HEAD dist
>  	git checkout -- $(srcdir)/po/$(PACKAGE_NAME).pot
ACK.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list