[master 1/3] Add po-empty make target

bcl installerbot-noreply at redhat.com
Fri Mar 6 16:22:18 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/6b251de7e9d71537fca8f67ea54884684f9ddbbf


More information about the anaconda-patches mailing list