katana/potmerge.sh

25 lines
416 B
Bash
Raw Normal View History

2014-12-06 21:32:35 +00:00
#!/bin/bash
set -e
pot="$1"
packs=("kde-l10n")
cwd="$(pwd)"
if [ -z "$pot" ];then
echo "Pass a path to .pot"
exit 1
elif ! type -p msgmerge ;then
echo "msgmerge is not in your PATH"
exit 1
fi
source "$(dirname $0)/fetch.sh"
name="$(basename $pot | sed 's|.pot|.po|g')"
for p in $(find kde-l10n/ -name "$name");do
echo "Updating $p..."
msgmerge --update "$p" "$pot"
done
echo "All done."