From: David Shea <dshea(a)redhat.com>
This adds a new make target, po-fallback, which will attempt to fetch
translations from Zanata and fallback to empty .po files if that fails.
---
Makefile.am | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 8e606e3..8623afd 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -67,11 +67,15 @@ po-empty:
exit 1 ; \
done
-scratch: po-empty
+# Try to fetch the real .po files, but if that fails use the empty ones
+po-fallback:
+ $(MAKE) po-pull || $(MAKE) po-empty
+
+scratch: po-fallback
$(MAKE) ARCHIVE_TAG=HEAD dist
git checkout -- $(srcdir)/po/$(PACKAGE_NAME).pot
-scratch-bumpver: po-empty
+scratch-bumpver: po-fallback
@opts="-S -n $(PACKAGE_NAME) -v $(PACKAGE_VERSION) -r $(PACKAGE_RELEASE) -b
$(PACKAGE_BUGREPORT) --newrelease $(RC_RELEASE)" ; \
if [ ! -z "$(IGNORE)" ]; then \
opts="$${opts} -i $(IGNORE)" ; \
--
To view this commit on github, visit
https://github.com/rhinstaller/anaconda/commit/cda9c64c96386ed47b4696901c...