From e3ad5313ecef0f92ca6b9ac557ac9e5e1acc9006 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Mon, 11 Jun 2012 10:34:19 +0100 Subject: [PATCH] Fix update-translations make target for out-of-tree build Signed-off-by: David Woodhouse --- Makefile.am | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index 2ec872c..a07efd0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -91,10 +91,11 @@ tag: uncommitted-check @./autogen.sh update-translations: - @if ! git diff-index --name-only --exit-code HEAD -- po/; then \ - echo "*** ERROR: Uncommitted changes in above files"; exit 1; fi - @tx pull -af - @git commit -s -m "Update translations from Transifex" -- po/ + @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/ ; \ + fi upload-pot: @make -C po openconnect.pot && tx push -s -- 2.7.4