diff options
| author | JosJuice <josjuice@gmail.com> | 2017-08-04 19:09:12 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2017-08-04 19:09:12 +0200 |
| commit | 0db63cefc0e4bc7448b393c9bc09c24ca39aa136 (patch) | |
| tree | 67c7d91f84be914bc315e4cd9edd9dc246b9bbb6 /Languages | |
| parent | ee4195547ab1222ac470812d3d8658e524608363 (diff) | |
Use dirname $0 in localization scripts
Diffstat (limited to 'Languages')
| -rwxr-xr-x | Languages/update-source-strings.sh | 2 | ||||
| -rwxr-xr-x | Languages/update-translated-strings.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Languages/update-source-strings.sh b/Languages/update-source-strings.sh index ed8629f4d9..66bdaf39be 100755 --- a/Languages/update-source-strings.sh +++ b/Languages/update-source-strings.sh @@ -3,7 +3,7 @@ # This script updates the dolphin-emu.pot file to match the strings in # the source code. -cd ${0/update-source-strings.sh/}/.. +cd "$(dirname "$0")/.." SRCDIR=Source find $SRCDIR -name '*.cpp' -o -name '*.h' -o -name '*.c' | \ xgettext -d dolphin-emu -s --keyword=_ --keyword=wxTRANSLATE --keyword=SuccessAlertT \ diff --git a/Languages/update-translated-strings.sh b/Languages/update-translated-strings.sh index 7183627aae..82679860cf 100755 --- a/Languages/update-translated-strings.sh +++ b/Languages/update-translated-strings.sh @@ -5,6 +5,6 @@ # script before committing changes to the .po files, otherwise the .po # files might get modified the next time you try to build using cmake. -cd ${0/update-translated-strings.sh/}/.. +cd "$(dirname "$0")/.." POTFILE=./Languages/po/dolphin-emu.pot find ./Languages/po -name '*.po' -exec msgmerge --quiet --update --backup=none -s {} $POTFILE \; |
