#!/usr/bin/env bash

rm en.old 2>/dev/null
mv en en.old
./locstrings.pl en ../*.p[lm] *.p[lm]

sort -u en > en.s1
rm en
cp en.s1 en
sort -u en.old > en.s2
rm loc.patch 2>/dev/null
diff en.s2 en.s1 | tee loc.patch | grep '^>' | tee loc.new
echo New strings:
wc -l loc.new
rm en.s1 en.s2

patch ru loc.patch
patch zh_CN loc.patch
