1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-12 07:35:51 +01:00

Workaround VPATH issue when generating message files

This was in locale/Makefile.in.in, but it would be easy
to accidentally lose those changes by running autopoint.
This commit is contained in:
lllucius@gmail.com
2015-01-03 03:49:50 +00:00
parent 7912b2ce5f
commit a1b40ef5e2
2 changed files with 222 additions and 8 deletions

View File

@@ -740,8 +740,30 @@ AC_OUTPUT
echo ""
echo "Finished configure:"
# Copy the contents of the locale directory to the build directory
[[ ! -e "${ac_abs_top_builddir}/po/LINGUAS" ]] && cp -a "${ac_abs_top_srcdir}/po/"* "${ac_abs_top_builddir}/po/"
# When building from a temporary directory and not the top level directory,
# the locale files get copied and the Makefile.in.in adjusted. Otherwise,
# the generated locale files will be placed in the top level "po" directory.
#
# The temporary Makefile.in.in is updated so we don't have to worry about
# committing changes that might get lost when regenerating config files.
if [[ ! -e "${ac_abs_top_builddir}/po/LINGUAS" ]]
then
pushd >/dev/null "${ac_abs_top_builddir}/po/"
if [[ "${ac_abs_top_builddir}" != "${ac_abs_top_srcdir}" ]]
then
cp -pr "${ac_abs_top_srcdir}/po/." .
sed -e "s/@srcdir@/./" "${ac_abs_top_srcdir}/po/Makefile.in.in" >"Makefile.in.in"
fi
for lang in $(cat "${ac_abs_top_srcdir}/po/LINGUAS")
do
mkdir -p "${lang}/LC_MESSAGES"
pushd >/dev/null "${lang}/LC_MESSAGES"
ln -s "../../${lang}.gmo" "audacity.mo"
popd >/dev/null
done
popd >/dev/null
fi
for lib in $LIBRARIES ; do
eval LIB_USE_LOCAL=\$${lib}_USE_LOCAL