Blame autobuild/transifex-pull-translations.sh

c70f84
#!/bin/bash
cc4c9e
cc4c9e
set -e
cc4c9e
cc4c9e
SCRIPTPATH="${BASH_SOURCE[0]}";
cc4c9e
pushd `dirname "${SCRIPTPATH}"` > /dev/null
cc4c9e
SCRIPTPATH=`pwd`;
cc4c9e
popd  > /dev/null
cc4c9e
8a1dbe
fix_po()
8a1dbe
{
8a1dbe
	for FILE in `ls -1 *.po`; do
caryoscelus fbf6ae
		sed -i '/Report-Msgid-Bugs-To:/c\"Report-Msgid-Bugs-To: https://github.com/synfig/synfig/issues\\n"' "$FILE" || true
8a1dbe
	done
8a1dbe
}
8a1dbe
cc4c9e
cd "$SCRIPTPATH/.."
cc4c9e
tx pull -a --force
8a1dbe
8a1dbe
cd "$SCRIPTPATH/../synfig-core/po"
8a1dbe
fix_po
8a1dbe
8a1dbe
cd "$SCRIPTPATH/../synfig-studio/po"
8a1dbe
fix_po
c70f84
c70f84
"$SCRIPTPATH/update-languages.sh"