Files
i2p.www/findpochanges.sh

23 lines
418 B
Bash
Raw Permalink Normal View History

2020-05-15 13:38:25 +00:00
TMP=/tmp/findpochanges$$.txt
TMP2=newtranslations.txt
rm -f $TMP2
touch $TMP2
for i in i2p2www/translations/*/*/*.po
do
if [ -d ./.git ]; then
git diff $i | grep '+msgstr' | grep -v '+msgstr ""' > $TMP
2020-11-16 11:55:10 -05:00
else
mtn diff $i | grep '+msgstr' | grep -v '+msgstr ""' > $TMP
2020-11-16 11:55:10 -05:00
fi
2020-05-15 13:38:25 +00:00
if [ -s $TMP ]
then
echo $i >> $TMP2
echo $i
cat $TMP
echo
fi
done
echo 'New strings in the following files:'
cat $TMP2
rm -f $TMP