bug-automake
[Top][All Lists]
Advanced

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

automake-1.4-p5: bug in lex file handling


From: Sergey Vlasov
Subject: automake-1.4-p5: bug in lex file handling
Date: Mon, 20 Aug 2001 20:30:50 +0400

I have found a bug in lex file handling in automake-1.4-p5;
this bug is also in the 1.4 version.

In automake.in, in sub lang_lex_finish, the .c (.cc, .cxx, ...)
files corresponding to the .l (.ll, .lxx, ...) files are added
to the @maintainer_clean_files array.  The filename conversion
should be performed by replacing 'l' characters in the suffix
by 'c', like in other places in the code.  However, instead of
doing tr/l/c/, the code erroneously does tr/y/c/, therefore
the conversion is not performed correctly.

This bug is dangerous: with MAINTAINER_CLEAN_FILES constructed
this way, "make maintainer-clean" will delete the original lex
source files, instead of the generated lex output!

The attached patch solves the problem.

-- 
Sergey Vlasov

Attachment: automake-1.4-p5-lexfix.patch
Description: Binary data


reply via email to

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