summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2015-06-12 20:58:51 +0000
committerintrigeri <intrigeri@boum.org>2015-06-12 20:58:51 +0000
commit53203d6f069fb732c2683a73d3abff5b5e11e4f8 (patch)
treefdfefa187a64745c671b7637d7b2c89493964716
parentd8cb5c31368b2b78fd00e4b2ad00413bce8b3cd1 (diff)
Replace check_po.sh with a symlink pointing to the same script in the jenkins-tools submodule.
Refs: #9567
l---------[-rwxr-xr-x]wiki/src/contribute/l10n_tricks/check_po.sh59
1 files changed, 1 insertions, 58 deletions
diff --git a/wiki/src/contribute/l10n_tricks/check_po.sh b/wiki/src/contribute/l10n_tricks/check_po.sh
index f781c52..10216c4 100755..120000
--- a/wiki/src/contribute/l10n_tricks/check_po.sh
+++ b/wiki/src/contribute/l10n_tricks/check_po.sh
@@ -1,58 +1 @@
-#!/bin/sh
-# -*- mode: sh; sh-basic-offset: 4; indent-tabs-mode: nil; -*-
-# vim: set filetype=sh sw=4 sts=4 expandtab autoindent:
-
-# Usage: check_po.sh [LANGUAGE]
-
-set -u
-
-if ! [ -x "`which i18nspector`" ] ; then
- echo "i18nspector: command not found"
- echo "You need to install i18nspector first. See /contribute/l10n_tricks."
- exit 2
-fi
-
-if [ $# -ge 1 ] ; then
- FILE_GLOB="*.${1}.po"
-else
- FILE_GLOB='*.po'
-fi
-
-PATTERNS_FILE="$(mktemp -t XXXXXX.patterns)"
-echo "
-boilerplate-in-date
-boilerplate-in-language-team
-boilerplate-in-last-translator
-boilerplate-in-project-id-version
-conflict-marker-in-header-entry
-fuzzy-header-entry
-incorrect-plural-forms
-invalid-content-transfer-encoding
-invalid-date
-invalid-language
-invalid-last-translator
-language-team-equal-to-last-translator
-no-language-header-field
-no-package-name-in-project-id-version
-no-plural-forms-header-field
-no-report-msgid-bugs-to-header-field
-no-version-in-project-id-version
-stray-previous-msgid
-unable-to-determine-language
-unknown-poedit-language
-" | grep -v '^$' > "$PATTERNS_FILE"
-
-CPUS=$(egrep '^processor[[:space:]]+:' /proc/cpuinfo | wc -l)
-OUTPUT=$(find -iname "$FILE_GLOB" -print0 \
- | xargs -0 --max-procs="$CPUS" --max-args=64 i18nspector \
- | grep -v --line-regexp '' \
- | grep -v -f "$PATTERNS_FILE")
-
-### Output and exit code
-# Our automated testing jobs depend on it, beware!
-
-# Output the filtered i18nspector's output
-echo -n "$OUTPUT"
-
-# Exit code: 0 iff. the filtered i18nspector's output was empty
-[ $(echo -n "$OUTPUT" | wc -l) -eq 0 ]
+../../../../submodules/jenkins-tools/slaves/check_po \ No newline at end of file