From: Bruno Haible Date: Sat, 7 Feb 2004 16:43:08 +0000 (+0000) Subject: Fix a problem when there are multiple AC_CONFIG_FILES commands in the X-Git-Tag: v0.14.2~298 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b57c3f21361c092c8d7aab8609add92f5f5b5c2;p=thirdparty%2Fgettext.git Fix a problem when there are multiple AC_CONFIG_FILES commands in the configure.ac. --- diff --git a/gettext-tools/misc/ChangeLog b/gettext-tools/misc/ChangeLog index 4bf9cb5f1..39001bcc8 100644 --- a/gettext-tools/misc/ChangeLog +++ b/gettext-tools/misc/ChangeLog @@ -1,3 +1,9 @@ +2004-02-07 Bruno Haible + + * gettextize.in: Modify only the first occurrence of AC_CONFIG_FILES, + not all of them. + Reported by Dalibor Topic . + 2004-02-04 Bruno Haible * gettextize.in: Add po to SUBDIRS if it was created in this run. diff --git a/gettext-tools/misc/gettextize.in b/gettext-tools/misc/gettextize.in index fcbd1bb41..9ad1cc882 100644 --- a/gettext-tools/misc/gettextize.in +++ b/gettext-tools/misc/gettextize.in @@ -927,7 +927,13 @@ func_modify_configure_in () if test -n "$added_acoutput"; then if grep '^AC_CONFIG_FILES(' "$srcdir/$configure_in" > /dev/null; then - sed -e "s%^\\(AC_CONFIG_FILES([^])\\,]*\\)%\\1$added_acoutput %" < "$srcdir/$configure_in" > "$srcdir/$configure_in.tmp" + sedprog=' +ta +b +:a +n +ba' + sed -e "s%^\\(AC_CONFIG_FILES([^])\\,]*\\)%\\1$added_acoutput %$sedprog" < "$srcdir/$configure_in" > "$srcdir/$configure_in.tmp" func_modify_configure_in "(AC_CONFIG_FILES): Add "`echo $added_acoutput | sed -e 's/ /, /g'`'.' else if grep '^AC_OUTPUT(' "$srcdir/$configure_in" > /dev/null; then