From a343b80134654090b466a496455aef7695d8b358 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 21 Jan 2018 11:36:51 -0500 Subject: [PATCH] L10N: Eliminated check_translations.sh --- src/l10n/check_translations.sh | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100755 src/l10n/check_translations.sh diff --git a/src/l10n/check_translations.sh b/src/l10n/check_translations.sh deleted file mode 100755 index 2f4b59119..000000000 --- a/src/l10n/check_translations.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash - -REFERENCE_LANGUAGE_FILE="eng-USA.h" -TESTED_LANGUAGE_FILES=`ls *.h | grep -v $REFERENCE_LANGUAGE_FILE` - -# At the beginning, we haven't detected any invalid translation files -MISMATCHED=0 - -# Generate list of keys, not including defines that are commented out. Strips out the leading whitespace. -cat $REFERENCE_LANGUAGE_FILE | grep "^[[:space:]]*#define" | sed -e 's/^ *//' - | cut -f2 -d' ' | sort > identifiers - -# Generate report -for LANGUAGE_FILE in $TESTED_LANGUAGE_FILES -do - echo "Comparing $REFERENCE_LANGUAGE_FILE (left) to $LANGUAGE_FILE (right)" - cat $LANGUAGE_FILE | grep "^[[:space:]]*#define" | sed -e 's/^ *//' - | cut -f2 -d' ' | sort | diff identifiers - - MISMATCHED=$(($MISMATCHED+$?)) - echo "" -done - -# Cleanup -rm -f identifiers - -# Exit with number of not synced translations files -exit $MISMATCHED