Skip to content

Commit

Permalink
Try to run make ci with real translations.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dashea committed Nov 5, 2015
1 parent 0421138 commit cda9c64
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile.am
Expand Up @@ -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)" ; \
Expand Down

0 comments on commit cda9c64

Please sign in to comment.