summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2017-07-22 20:28:37 (EDT)
committer P. J. McDermott <pj@pehjota.net>2017-07-22 20:28:37 (EDT)
commite23c6753dbf96b08470e00c02169fdcbe7433c97 (patch)
tree5145d1c379ddcfe8f87d85153b4da99a82bc2f51
parente23a5dd0a1b2818f795e995ea4c8bbadb25c8906 (diff)
load_locale(): Automatically set localedir when in build dir
-rw-r--r--src/locale.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/locale.sh b/src/locale.sh
index d6b2204..9924d46 100644
--- a/src/locale.sh
+++ b/src/locale.sh
@@ -37,8 +37,8 @@ load_locale()
fi
fi
- if [ "${ARCHMAN_LOCALEDIR+set}" = 'set' ]; then
- localedir="${ARCHMAN_LOCALEDIR:-.}"
+ if ${in_place}; then
+ localedir="${builddir}/locale"
else
localedir="${LOCALEDIR}"
fi