[PATCH 06/13] Add po-empty make target
David Lehman
dlehman at redhat.com
Wed May 27 18:16:07 UTC 2015
From: "Brian C. Lane" <bcl at redhat.com>
(cherry picked from commit 7208b0bc80cee8fbbdbb649f008523335801d376)
---
Makefile | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/Makefile b/Makefile
index 1f7cc7a..f62771d 100644
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,13 @@ po-pull:
rpm -q zanata-python-client &>/dev/null || ( echo "need to run: yum install zanata-python-client"; exit 1 )
zanata pull $(ZANATA_PULL_ARGS)
+po-empty:
+ for lingua in $$(gawk 'match($$0, /locale>(.*)<\/locale/, ary) {print ary[1]}' ./zanata.xml) ; do \
+ [ -f ./po/$$lingua.po ] || \
+ msginit -i ./po/$(PKGNAME).pot -o ./po/$$lingua.po --no-translator || \
+ exit 1 ; \
+ done
+
test:
@echo "*** Running unittests ***"
PYTHONPATH=.:tests/ python -m unittest discover -v -s tests/ -p '*_test.py'
--
2.1.0
More information about the anaconda-patches
mailing list