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.
This commit is contained in:
Bastien Nocera 2016-10-13 17:25:24 +02:00
parent 9acacefa18
commit efe2a5b00c

View file

@ -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