summaryrefslogtreecommitdiff
path: root/Languages
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2017-08-04 19:09:12 +0200
committerJosJuice <josjuice@gmail.com>2017-08-04 19:09:12 +0200
commit0db63cefc0e4bc7448b393c9bc09c24ca39aa136 (patch)
tree67c7d91f84be914bc315e4cd9edd9dc246b9bbb6 /Languages
parentee4195547ab1222ac470812d3d8658e524608363 (diff)
Use dirname $0 in localization scripts
Diffstat (limited to 'Languages')
-rwxr-xr-xLanguages/update-source-strings.sh2
-rwxr-xr-xLanguages/update-translated-strings.sh2
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 \;