pormerge.sh: remove obsolete translations after merge

This commit is contained in:
Ivailo Monev 2015-01-25 20:18:14 +00:00
parent 52b7d2ec44
commit 9eca9f9460

View file

@ -11,6 +11,9 @@ if [ -z "$pot" ];then
elif ! type -p msgmerge ;then
echo "msgmerge is not in your PATH"
exit 1
elif ! type -p msgattrib ;then
echo "msgattrib is not in your PATH"
exit 1
fi
source "$(dirname $0)/fetch.sh"
@ -19,6 +22,8 @@ name="$(basename $pot | sed 's|.pot|.po|g')"
for p in $(find kde-l10n/ -name "$name");do
echo "Updating $p..."
msgmerge --update --no-fuzzy-matching "$p" "$pot"
echo "Cleaning up $p..."
msgattrib --no-obsolete "$p" -o "$p"
done
echo "All done."