diff options
Diffstat (limited to 'scripts/po-check-preseed')
-rwxr-xr-x | scripts/po-check-preseed | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/scripts/po-check-preseed b/scripts/po-check-preseed deleted file mode 100755 index b5523bfbe..000000000 --- a/scripts/po-check-preseed +++ /dev/null @@ -1,32 +0,0 @@ -#! /bin/sh - -if [ -z "$1" ] || [ ! -d po/"$1" ]; then - echo "Usage: $(basename $0) <language>" - exit 1 -fi - -cd po/$1 - -echo "This script performs a very basic sanity check to see if nothing has" -echo "been missed in the translation of preseed.po. It does this by counting" -echo "the number of lines that start with 'd-i' or '#d-i' for both msgid and" -echo "msgstr and printing the result. It will then print a diff between the" -echo "original and translation for a visual check." -echo -echo - -tmp_msgid=$(mktemp -p /tmp preseed_msgid.XXXXXX) -tmp_msgstr=$(mktemp -p /tmp preseed_msgstr.XXXXXX) - -sed -n "/^msgid/,/^msgstr/ p" preseed.po | grep -v msgstr | \ - grep "^\"#\?d-i " >$tmp_msgid -sed -n "/^msgstr/,/^$/ p" preseed.po | \ - grep "^\"#\?d-i " >$tmp_msgstr - -echo "Number of original lines: $(wc -l <$tmp_msgid)" -echo "Number of translated lines: $(wc -l <$tmp_msgstr)" -echo - -diff -U0 $tmp_msgid $tmp_msgstr - -rm -f $tmp_msgid $tmp_msgstr |