summaryrefslogtreecommitdiff
path: root/l10ntools/Executable_pocheck.mk
diff options
context:
space:
mode:
authorAndras Timar <atimar@suse.com>2013-08-20 13:24:19 +0200
committerAndras Timar <atimar@suse.com>2013-08-20 13:29:39 +0200
commit72576f439ad3eebc6947a50070f1ffabe2964b32 (patch)
tree0488d4e1dd9677b8f4e863144e880227fe19f8d7 /l10ntools/Executable_pocheck.mk
parentab55228f6c524ddefde2d7e1d6688b8a407da3ad (diff)
fdo#67786 pocheck tool for checking translations
Pootle has many checks, but there are cases which are not covered. Therefore I wrote a tool which checked three types of translation errors: 1. Unique style names. 2. Unique spreadsheet function names. 3. Missing trailing '|' in Windows installer translation. Usage: make cmd cmd=solver/*/bin/pocheck It checks all languages and prints the report to stdout. Change-Id: I89aad66ea41c0ebe4a6f45beaaf86afd1a6439cc
Diffstat (limited to 'l10ntools/Executable_pocheck.mk')
-rw-r--r--l10ntools/Executable_pocheck.mk34
1 files changed, 34 insertions, 0 deletions
diff --git a/l10ntools/Executable_pocheck.mk b/l10ntools/Executable_pocheck.mk
new file mode 100644
index 000000000000..2619ac6f4b57
--- /dev/null
+++ b/l10ntools/Executable_pocheck.mk
@@ -0,0 +1,34 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_Executable_Executable,pocheck))
+
+$(eval $(call gb_Executable_set_include,pocheck,\
+ -I$(SRCDIR)/l10ntools/inc \
+ $$(INCLUDE) \
+))
+
+$(eval $(call gb_Executable_use_libraries,pocheck,\
+ sal \
+))
+
+$(eval $(call gb_Executable_use_static_libraries,pocheck,\
+ transex \
+))
+
+$(eval $(call gb_Executable_add_exception_objects,pocheck,\
+ l10ntools/source/pocheck \
+))
+
+$(eval $(call gb_Executable_use_externals,pocheck,\
+ boost_headers \
+ libxml2 \
+))
+
+# vim:set noet sw=4 ts=4: