From 8ac8525b92ae7a3048add57ba950fbf41f4c03bf Mon Sep 17 00:00:00 2001 From: David Shea Date: Thu, 5 Nov 2015 14:35:31 -0500 Subject: [PATCH] Try to run make ci with real translations. 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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 8e606e387c3f..ad0b2d42791c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -67,7 +67,11 @@ 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