Workaround intltoolize 0.40.6 bug related to LINGUAS, see bug 2817602.
authorLaurent Monin <geeqie@norz.org>
Sat, 9 Jan 2010 11:44:27 +0000 (11:44 +0000)
committerLaurent Monin <geeqie@norz.org>
Sat, 9 Jan 2010 11:44:27 +0000 (11:44 +0000)
autogen.sh

index ef64ec1..c1603ea 100755 (executable)
@@ -107,6 +107,10 @@ do
          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