[rhel6-branch 2/30] Add po-empty make target
mulkieran
installerbot-noreply at redhat.com
Thu May 28 21:04:07 UTC 2015
From: "Brian C. Lane" <bcl at redhat.com>
---
Makefile | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/Makefile b/Makefile
index 1fdbf63..86edd5f 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'
--
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/7917d7f37bab6e6e19072ed3361e38b773d1f37b
More information about the anaconda-patches
mailing list