This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: automake-1.6.1: both developers try their fixes
- From: Alexandre Duret-Lutz <duret_g at lrde dot epita dot fr>
- To: Joerg Anders <j dot anders at informatik dot tu-chemnitz dot de>, david at mandrakesoft dot com
- Cc: automake at gnu dot org, <kde-devel at kde dot org>
- Date: Wed, 24 Apr 2002 22:11:47 +0200
- Subject: Re: automake-1.6.1: both developers try their fixes
- References: <Pine.LNX.4.44.0204240758070.13274-100000@wicht.informatik.tu-chemnitz.de>
>>> "Joerg" == Joerg Anders <j.anders@informatik.tu-chemnitz.de> writes:
[...]
Joerg> + From david@mandrakesoft.com Wed Apr 24 07:58:00 2002
[...]
Joerg> + > + Unfortunately this fools Automake, as it recognizes its
Joerg> + > + Makefile.in's by checking whether the *first* line contains
Joerg> + > + 'generated by automake'.
Joerg> +
Joerg> + Duh. Both scripts use the same trick, but am_edit is more tolerant
Joerg> + when it comes to finding its own line.....
Joerg> +
Joerg> + I just committed this (after some hear-tearing because Alexandre's
Joerg> + mail said "generated by automake" instead of "generated
Joerg> + automatically by automake"!) :
That's really what I meant, I'm afraid.
Automake <= 1.5:
output 'generated automatically by automake' but don't grep for it
Automake 1.6 and 1.6.1:
output 'generated by automake' and grep for it in the *first* line
CVS Automake (future versions):
output 'generated by automake' and grep for it in the whole file
(Don't ask me why the wording changed, I don't know.)
[...]
Joerg> + + if ( !( $MakefileData =~ s/^(.*generated automatically by automake.*\n)/$1$progIdLine/ ) ) {
hence I suggest something like /^(.*generated .*by automake.*\n)/
[...]
--
Alexandre Duret-Lutz