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

David Shea dshea at redhat.com
Wed Mar 26 14:34:01 UTC 2014


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
-- 
1.9.0



More information about the anaconda-patches mailing list