>From b09e9b0ab24a2c6b7d96c171a1a25e9d9777ad22 Mon Sep 17 00:00:00 2001 From: Bruno Haible
Date: Sat, 9 Sep 2017 00:49:56 +0200 Subject: [PATCH 08/16] gnulib-tool.py: follow gnulib-tool changes, part 4 Follow gnulib-tool change from 2013-01-05 "gnulib-tool: fix incompatibility with autopoint 0.18.2" * pygnulib/GLEmiter.py: Don't indent AM_GNU_GETTEXT_VERSION line. --- pygnulib/GLEmiter.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pygnulib/GLEmiter.py b/pygnulib/GLEmiter.py index b6f8991..178cdee 100644 --- a/pygnulib/GLEmiter.py +++ b/pygnulib/GLEmiter.py @@ -180,6 +180,10 @@ class GLEmiter(object): if disable_gettext: snippet = snippet.replace('AM_GNU_GETTEXT([external])', 'dnl you must \ add AM_GNU_GETTEXT([external]) or similar to configure.ac.') + else: + # Don't indent AM_GNU_GETTEXT_VERSION line, as that confuses + # autopoint through at least GNU gettext version 0.18.2. + snippet = compiler('^ *AM_GNU_GETTEXT_VERSION').sub('AM_GNU_GETTEXT_VERSION', snippet) emit += snippet if str(module) == 'alloca' and libtool and not disable_libtool: emit += 'changequote(,)dnl\n' -- 2.7.4