From: Bruno Haible Date: Fri, 3 Feb 2023 22:44:07 +0000 (+0100) Subject: intl: Fix generation of libgnuintl.h (regression from 2022-07-17). X-Git-Tag: v0.22~168 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8ad949223a5d6fd40c627894be8e6ef459f7197;p=thirdparty%2Fgettext.git intl: Fix generation of libgnuintl.h (regression from 2022-07-17). * gettext-runtime/intl/Makefile.am (libgnuintl.h): Use a syntax that does not require GNU sed. --- diff --git a/gettext-runtime/intl/Makefile.am b/gettext-runtime/intl/Makefile.am index f7cf470d8..2eba70f8c 100644 --- a/gettext-runtime/intl/Makefile.am +++ b/gettext-runtime/intl/Makefile.am @@ -1,6 +1,6 @@ ## Makefile for the gettext-runtime/intl and gettext-tools/intl subdirectories ## of GNU gettext. -## Copyright (C) 1995-1998, 2000-2007, 2009-2022 Free Software Foundation, Inc. +## Copyright (C) 1995-1998, 2000-2007, 2009-2023 Free Software Foundation, Inc. ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU Lesser General Public License as published by @@ -235,7 +235,7 @@ libgnuintl.h: $(srcdir)/libgnuintl.in.h $(srcdir)/export.h fi \ | sed -e 's/extern \([^"]\)/extern LIBINTL_DLL_EXPORTED \1/' \ -e "/#define _LIBINTL_H/r $(srcdir)/export.h" \ - | sed -e "/#define _LIBINTL_H/,+15{/#define _LIBINTL_H/!d}" \ + | sed -e '/#define _LIBINTL_H/,/[*][/]$$/{/#define _LIBINTL_H/!d;}' \ | sed -e 's,@''HAVE_VISIBILITY''@,@HAVE_VISIBILITY@,g' \ > libgnuintl.h MOSTLYCLEANFILES += libgnuintl.h