]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Use more portable shell syntax.
authorBruno Haible <bruno@clisp.org>
Sat, 7 Feb 2009 00:56:31 +0000 (00:56 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:16:01 +0000 (12:16 +0200)
gettext-runtime/intl/ChangeLog
gettext-runtime/intl/Makefile.in

index da21dc39f7dc30dc17b63b7b1e86e23d7cf92799..a23b9d40ba91dcd134d592e9b30c4e85a4399631 100644 (file)
@@ -1,3 +1,8 @@
+2009-02-06  Bruno Haible  <bruno@clisp.org>
+
+       * Makefile.in (libintl.res): Initialize nl without assuming GNU bash.
+       Reported by Marko Lindqvist <cazfi74@gmail.com>.
+
 2009-01-25  Bruno Haible  <bruno@clisp.org>
 
        * threadlib.c: Include <stdlib.h>.
index 04341dadb172fa0f9ee7d4e4e44bc4ca18136434..d37445438addadd113e64a715dbf898277bbb20e 100644 (file)
@@ -281,10 +281,9 @@ intl-compat.lo: $(srcdir)/intl-compat.c
 # The following sed expressions come from the windres-options script. They are
 # inlined here, so that they can be written in a Makefile without requiring a
 # temporary file. They must contain literal newlines rather than semicolons,
-# so that they work with the sed-3.02 that is shipped with MSYS. We can use
-# GNU bash's $'\n' syntax to obtain such a newline.
+# so that they work with the sed-3.02 that is shipped with MSYS.
 libintl.res: $(srcdir)/libintl.rc
-       nl=$$'\n'; \
+       nlinit=`echo 'nl="'; echo '"'`; eval "$$nlinit"; \
        sed_extract_major='/^[0-9]/{'$${nl}'s/^\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \
        sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{'$${nl}'s/^[0-9]*[.]\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \
        sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{'$${nl}'s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \