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

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

Re: CVS & Gettext


From: Akim Demaille
Subject: Re: CVS & Gettext
Date: 11 Apr 2002 15:54:01 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp)

>>>>> "Bruno" == Bruno Haible <address@hidden> writes:

Bruno> Akim Demaille writes:
>> | It should never run | gettextize automatically, because it has no
>> way to do the remaining | 20% of the job, which gettextize doesn't
>> do.
>> 
>> Fortunately, it does not.  Just as in the case of Gettext, reading
>> the documentation can be helpful to know what it does.  If you
>> don't --install, it will never do such a thing.  If you have
>> Gettext installed and you don't --force, it won't either.

Bruno> OK, please say so in the documentation. In 2.53, the
Bruno> documentation says that gettextize is run "when appropriate".

Actually, I often prefer short documentation rather than documentation
that ends up hiding the simplicity of the concepts with heavy
implementation details.

I think `when appropriate' is just what it takes.

But OK, I'll plug a few additional words to clarify the matter (the
problem being that the same is needed for Automake, Autoconf, Libtool,
etc. that makes a lot of noise around a simple feature).

>> The only problematic problem is that gettextize doesn't check if
>> intl/Makefile is already in configure.in before adding it.
>> 
>> Would you accept a patch to gettextize that would make sure
>> gettextize does not change something it should not?

Bruno> I wasn't aware of this bug. 

So I suppose that this message has been lost at some point:

http://mail.gnu.org/pipermail/bug-gnu-utils/2002-March/009822.html

Bruno> In the tests I made, running gettextize a second time didn't
Bruno> change anything. Can you provide a testcase?

Sure!

mkdir foo
cd foo
cat >configure.ac <<EOF
AC_INIT(Foo, 1.0)
AM_INIT_AUTOMAKE([foreign])
AM_GNU_GETTEXT
AC_CONFIG_FILES(Makefile)
AC_CONFIG_FILES(intl/Makefile po/Makefile.in)
AC_OUTPUT
EOF
cat >Makefile.am <<EOF
SUBDIRS = po intl
EOF
autoreconf -f -v -i



at this point:


/tmp/gettextize/foo % cat configure.ac                           nostromo 15:48
AC_INIT(Foo, 1.0)
AM_INIT_AUTOMAKE([foreign])
AM_GNU_GETTEXT
AC_CONFIG_FILES(Makefile intl/Makefile po/Makefile.in m4/Makefile )
AC_CONFIG_FILES(intl/Makefile po/Makefile.in intl/Makefile po/Makefile.in 
m4/Makefile )
AC_OUTPUT



there are already two additional copies of intl and po's Makefile.  In
addition:


/tmp/gettextize/foo % cat Makefile.am                            nostromo 15:48
SUBDIRS = intl m4  po intl

ACLOCAL_AMFLAGS = -I m4

EXTRA_DIST = config.rpath


There are too many SUBDIRS.

Also, another related problem is that if I use AC_CONFIG_AUXDIR, then
config.rpath will be put there.  Fine!  But it is EXTRA_DISTed in the
top level Makefile.am, even if it is already EXTRA_DISTed in the
auxdir's Makefile.am.

Thanks!



reply via email to

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