From efe2a5b00ce89eab4de27aa8bd38230cdac0fee2 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 13 Oct 2016 17:25:24 +0200 Subject: [PATCH] build: Fix updating translations with builddir != srcdir tx supports a single "--root" argument to pass both where it expects to read the created data file (the .pot file) and the configuration. As those are two separate directories with builddir != srcdir, copy the .tx file from srcdir to builddir to upload the updated .pot file. --- Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index a97418e..616019b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -22,7 +22,8 @@ check-translations: done; update-translations: create-pot check-translations - @tx pull --all --force --skip + @tx -r $(srcdir) pull --all --force --skip + @if [ ! -d .tx ] ; then mkdir .tx ; fi ; cp -f $(srcdir)/.tx/config .tx/ @tx push --source -include $(top_srcdir)/git.mk