0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-19 19:42:17 +02:00
Anki-Android/tools/humanize-new-features.sh
2011-11-25 22:44:53 +09:00

21 lines
542 B
Bash
Executable File

#!/bin/bash
# Shows human-readable (not XML) changelog for English and for languages where it is not identical to English.
LANGS=`ls res | grep "values-" | sed -e "s/values-//" | grep -v "v11"`
for LANG in $LANGS
do
DIFFERENT=`diff -b res/values-$LANG/13-newfeatures.xml res/values/13-newfeatures.xml | grep "<item>" | wc -l`
if [ $DIFFERENT -ne "0" ]
then
echo "$LANG:"
grep "<item>" res/values-$LANG/13-newfeatures.xml | sed -e "s/.*<item>/• /" -e "s/<.*//" -e "s/\\\\//"
else
echo "($LANG identical to English)"
fi
done