3 top_builddir="@top_builddir@"
4 localedir="@localedir@"
6 destdir="$(pwd)/tmp-root"
8 if test -d "${top_builddir}"; then :; else
9 echo "top_builddir \`${top_builddir}' not found"
13 echo -n "Test installation of translated messages..."
14 if (cd "${top_builddir}/po" && make DESTDIR="${destdir}" install > /dev/null 2>&1); then
18 echo "Could not create test installation of translated messages"
22 binlocaledir="$(./print-localedir)"
23 mylocaledir="${destdir}${binlocaledir}"
24 if test -d "${destdir}${binlocaledir}"; then
25 echo "Test installation contains localedir \`${binlocaledir}'."
27 echo "localedir \`${binlocaledir}' does not exist"
31 testnls="./test-nls ${mylocaledir}"
33 echo "NLS test successful"
37 echo "NLS test failed, not removing test installation from"