Handle update-translated-strings.sh being run from a different directory

update-source-strings.sh was already solving the same problem
in the same way.
This commit is contained in:
JosJuice 2017-08-04 10:39:08 +02:00
parent 20d7180041
commit ee4195547a

View File

@ -5,5 +5,6 @@
# script before committing changes to the .po files, otherwise the .po # script before committing changes to the .po files, otherwise the .po
# files might get modified the next time you try to build using cmake. # files might get modified the next time you try to build using cmake.
cd ${0/update-translated-strings.sh/}/..
POTFILE=./Languages/po/dolphin-emu.pot POTFILE=./Languages/po/dolphin-emu.pot
find ./Languages/po -name '*.po' -exec msgmerge --quiet --update --backup=none -s {} $POTFILE \; find ./Languages/po -name '*.po' -exec msgmerge --quiet --update --backup=none -s {} $POTFILE \;