bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug] gettextize 0.14.1 adds intl/Makefile to all AC_CONFIG_FILES


From: Bruno Haible
Subject: Re: [bug] gettextize 0.14.1 adds intl/Makefile to all AC_CONFIG_FILES
Date: Sat, 7 Feb 2004 17:38:31 +0100
User-agent: KMail/1.5

Dalibor Topic wrote:
> The first thing I noticed was that gettextize addes intl/Makefile to
> each AC_CONFIG_FILES . Since I prefer to call AC_CONFIG_FILES for each
> output file ones, I ended up having quite a few entries of intl/Makefile
>   ;) Automake 1.8.2 doesn't like that.

Thanks for reporting this. Here is a fix. (Note that the fix triggers a
bug in GNU sed-4.0.3, which is however fixed in sed >= 4.0.8.)

Bruno


diff -c -3 -r1.14 gettextize.in
*** gettext-tools/misc/gettextize.in    4 Feb 2004 12:30:07 -0000       1.14
--- gettext-tools/misc/gettextize.in    7 Feb 2004 16:20:05 -0000
***************
*** 927,933 ****
  
  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"
      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
--- 927,939 ----
  
  if test -n "$added_acoutput"; then
    if grep '^AC_CONFIG_FILES(' "$srcdir/$configure_in" > /dev/null; then
!     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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]