]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix a problem when there are multiple AC_CONFIG_FILES commands in the
authorBruno Haible <bruno@clisp.org>
Sat, 7 Feb 2004 16:43:08 +0000 (16:43 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:11:47 +0000 (12:11 +0200)
configure.ac.

gettext-tools/misc/ChangeLog
gettext-tools/misc/gettextize.in

index 4bf9cb5f1545be76a2e457c8154626a1edd33ee4..39001bcc8462722b1d887d83d06bfd690f65620f 100644 (file)
@@ -1,3 +1,9 @@
+2004-02-07  Bruno Haible  <bruno@clisp.org>
+
+       * gettextize.in: Modify only the first occurrence of AC_CONFIG_FILES,
+       not all of them.
+       Reported by Dalibor Topic <robilad@kaffe.org>.
+
 2004-02-04  Bruno Haible  <bruno@clisp.org>
 
        * gettextize.in: Add po to SUBDIRS if it was created in this run.
index fcbd1bb4175b6ae8baaf42104714a442ac373cf7..9ad1cc8821f6a9827e9d7b0d61f8f5a97f0e52d0 100644 (file)
@@ -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