From: Bruno Haible Date: Sat, 7 Feb 2009 00:56:31 +0000 (+0000) Subject: Use more portable shell syntax. X-Git-Tag: v0.18~239 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f297f92efa9ca9d92b76e01d0aec5e1c42af82b6;p=thirdparty%2Fgettext.git Use more portable shell syntax. --- diff --git a/gettext-runtime/intl/ChangeLog b/gettext-runtime/intl/ChangeLog index da21dc39f..a23b9d40b 100644 --- a/gettext-runtime/intl/ChangeLog +++ b/gettext-runtime/intl/ChangeLog @@ -1,3 +1,8 @@ +2009-02-06 Bruno Haible + + * Makefile.in (libintl.res): Initialize nl without assuming GNU bash. + Reported by Marko Lindqvist . + 2009-01-25 Bruno Haible * threadlib.c: Include . diff --git a/gettext-runtime/intl/Makefile.in b/gettext-runtime/intl/Makefile.in index 04341dadb..d37445438 100644 --- a/gettext-runtime/intl/Makefile.in +++ b/gettext-runtime/intl/Makefile.in @@ -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; \