]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
intl: Fix generation of libgnuintl.h (regression from 2022-07-17).
authorBruno Haible <bruno@clisp.org>
Fri, 3 Feb 2023 22:44:07 +0000 (23:44 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 11 Feb 2023 10:32:44 +0000 (11:32 +0100)
* gettext-runtime/intl/Makefile.am (libgnuintl.h): Use a syntax that does not
require GNU sed.

gettext-runtime/intl/Makefile.am

index f7cf470d89805e80d1a0a47984e851d5661da5a4..2eba70f8cef5f05b5ffeb7372efb702a8ea1d2b7 100644 (file)
@@ -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