From: David Woodhouse Date: Wed, 20 Jun 2012 13:47:41 +0000 (+0100) Subject: Run msgmerge after importing translations from Transifex X-Git-Tag: v4.00~2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=efd5571afeb5332ae010d1df4a043a3df208ab0e;p=users%2Fdwmw2%2Fopenconnect.git Run msgmerge after importing translations from Transifex Signed-off-by: David Woodhouse --- diff --git a/Makefile.am b/Makefile.am index 3fc6a2c1..55c61ebb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -101,11 +101,15 @@ tag: uncommitted-check @git tag v$(VERSION) @cd $(srcdir) && ./autogen.sh -update-translations: +update-translations: po/$(PACKAGE).pot @cd $(top_srcdir); if ! git diff-index --name-only --exit-code HEAD -- po/; then \ echo "*** ERROR: Uncommitted changes in above files"; exit 1; \ else \ - tx pull -af ; git commit -s -m "Update translations from Transifex" -- po/ ; \ + tx pull -af && \ + for a in po/*.po; do \ + msgmerge -F $$a $(abs_builddir)/po/$(PACKAGE).pot > $$a.new && mv $$a.new $$a ; \ + done && \ + git commit -s -m "Update translations from Transifex" -- po/ ; \ fi upload-pot: po/$(PACKAGE).pot