changeset 1747:10f9803aca45

Workaround intltoolize 0.40.6 bug related to LINGUAS, see bug 2817602.
author zas_
date Sat, 09 Jan 2010 11:44:27 +0000
parents 219a5dd783ed
children b8d37cc79410
files autogen.sh
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/autogen.sh	Sat Jan 09 10:37:48 2010 +0000
+++ b/autogen.sh	Sat Jan 09 11:44:27 2010 +0000
@@ -107,6 +107,10 @@
 	  echo "no" | glib-gettextize --force --copy
 	  echo "Running intltoolize"
 	  intltoolize --copy --force --automake
+	  if intltoolize --version | grep -q ' 0.40.6'; then
+		  echo "Workaround intltoolize 0.40.6 bug (LINGUAS)"
+		  sed "s:'\^\$\$lang\$\$':\^\$\$lang\$\$:g" -i po/Makefile.in.in
+	  fi
 	  echo "Making $dr/aclocal.m4 writable ..."
 	  test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
         fi