Add update-translations make target
authorDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 4 Oct 2011 11:29:34 +0000 (12:29 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 4 Oct 2011 13:23:17 +0000 (14:23 +0100)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Makefile.am

index 1945d43..c3aec6d 100644 (file)
@@ -75,3 +75,10 @@ tag: uncommitted-check
        @git commit -s -m "Tag version $(VERSION)" configure.ac version.sh www/download.xml www/changelog.xml
        @git tag v$(VERSION)
        @./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/
+