0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 03:52:15 +02:00
Anki-Android/tools/humanize-new-features.sh

24 lines
753 B
Bash
Raw Normal View History

2011-11-25 14:44:53 +01:00
#!/bin/bash
# Shows human-readable (not XML) changelog for English and for languages where it is not identical to English.
2011-11-25 15:57:26 +01:00
echo "English:"
2014-12-18 02:58:16 +01:00
grep "<item>" AnkiDroid/src/main/res/values/13-newfeatures.xml | sed -e "s/.*<item>/• /" -e "s/<.*//" -e "s/\\\\//"
2011-11-25 15:57:26 +01:00
2014-12-18 02:58:16 +01:00
LANGS=`ls AnkiDroid/src/main/res | grep "values-" | sed -e "s/values-//" | grep -v "v11"`
2011-11-25 14:44:53 +01:00
for LANG in $LANGS
do
2014-12-18 02:58:16 +01:00
DIFFERENT=`diff -b AnkiDroid/src/main/res/values-$LANG/13-newfeatures.xml AnkiDroid/src/main/res/values/13-newfeatures.xml | grep "<item>" | wc -l`
2011-11-25 14:44:53 +01:00
if [ $DIFFERENT -ne "0" ]
then
echo "$LANG:"
2014-12-18 02:58:16 +01:00
grep "<item>" AnkiDroid/src/main/res/values-$LANG/13-newfeatures.xml | sed -e "s/.*<item>/• /" -e "s/<.*//" -e "s/\\\\//"
2011-11-25 14:44:53 +01:00
else
echo "($LANG identical to English)"
fi
done