[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
automake-1.6.1: both developers try their fixes
From: |
Joerg Anders |
Subject: |
automake-1.6.1: both developers try their fixes |
Date: |
Wed, 24 Apr 2002 09:02:07 +0200 (CEST) |
I write this to both lists (kde-devel,automake) to avoid
problems because both developers try to fix the
automake-1.6.1/KDE3 problem:
On Tue, 23 Apr 2002, Alexandre Duret-Lutz wrote:
> >>> "Joerg" == Joerg Anders <address@hidden> writes:
>
> [...]
>
> Joerg> But what do you recommend to do?
>
> Just relax and wait for the next Automake release :)
> --
> Alexandre Duret-Lutz
>
>
+ From address@hidden Wed Apr 24 07:58:00 2002
+ Date: Tue, 23 Apr 2002 18:03:09 +0200
+ From: David Faure <address@hidden>
+ Reply-To: address@hidden
+ To: address@hidden
+ Subject: Re: automake-1.6.1: I know exactly the error
+ Resent-Date: 23 Apr 2002 16:06:08 -0000
+ Resent-From: address@hidden
+ Resent-cc: recipient list not shown: ;
+
+ On Tuesday 23 April 2002 17:13, Joerg Anders wrote:
+ > + Unfortunately this fools Automake, as it recognizes its
+ > + Makefile.in's by checking whether the *first* line contains
+ > + 'generated by automake'.
+
+ Duh. Both scripts use the same trick, but am_edit is more tolerant when it
+ comes to finding its own line.....
+
+ I just committed this (after some hear-tearing because Alexandre's mail said
+ "generated by automake" instead of "generated automatically by automake"!) :
+
+ Index: am_edit
+ ===================================================================
+ RCS file: /home/kde/kde-common/admin/am_edit,v
+ retrieving revision 1.314
+ diff -u -p -r1.314 am_edit
+ --- am_edit 2002/04/17 16:13:10 1.314
+ +++ am_edit 2002/04/23 16:01:27
+ @@ -2085,8 +2085,15 @@ sub updateMakefile ()
+ open (FILEOUT, "> $makefile")
+ || die "Could not create $makefile: $!\n";
+
+ - print FILEOUT "\# $progId - " . '$Revision: 1.313 $ ' . "\n";
+ $MakefileData =~ s/\034/\\\n\t/g; # Restore continuation lines
+ + # Append our $progId line, _below_ the "generated by automake" line
+ + # because automake-1.6 relies on the first line to be his own.
+ + my $progIdLine = "\# $progId - " . '$Revision: 1.313 $ '."\n";
+ + if ( !( $MakefileData =~ s/^(.*generated automatically by
automake.*\n)/$1$progIdLine/ ) ) {
+ + warn "automake line not found in $makefile\n";
+ + # Fallback: first line
+ + print FILEOUT $progIdLine;
+ + };
+ print FILEOUT $MakefileData;
+ close FILEOUT;
+ }
+
+ --
+ David FAURE, address@hidden, address@hidden
+ http://people.mandrakesoft.com/~david/
+ Contributing to: http://www.konqueror.org/, http://www.koffice.org/
+ KDE, Making The Future of Computing Available Today
+
--
J.Anders, Chemnitz, GERMANY (address@hidden)
- automake > 1.4 does not work, Joerg Anders, 2002/04/23
- Re: automake > 1.4 does not work, Richard Boulton, 2002/04/23
- automake1.4/1.6.1 more precise, Joerg Anders, 2002/04/23
- Re: automake1.4/1.6.1 more precise, Alexandre Duret-Lutz, 2002/04/23
- Thanks! And question!, Joerg Anders, 2002/04/23
- Re: Thanks! And question!, Alexandre Duret-Lutz, 2002/04/23
- automake-1.6.1: both developers try their fixes,
Joerg Anders <=
- Re: automake-1.6.1: both developers try their fixes, Alexandre Duret-Lutz, 2002/04/24
- Re: automake-1.6.1: both developers try their fixes, Tom Tromey, 2002/04/24
- Re: automake-1.6.1: both developers try their fixes, Akim Demaille, 2002/04/25
- Re: automake-1.6.1: both developers try their fixes, David Faure, 2002/04/25
- Re: automake-1.6.1: nothing helps, Joerg Anders, 2002/04/25
Re: automake > 1.4 does not work, Lars Hecking, 2002/04/23