Joern Rennecke wrote:
> Quoting Georg-Johann Lay:
> 
>> The sed -e 's:\r::g' from above that tries to fix line endings has the
>> problem that not all sed implementations are the same, i.e. some just do
>> sed -e 's:r::g' and remove all r's.
>>
>> I searched some time how to accomplish this but did not find a neat
>> solution.
>>
>> Can tr from roff be used? Is it a valid prerequisite for GCC?
> 
> tr is already used in a number of places in Makefile.in.  Note
> that there is a distinction between tools required to rebuild
> auto-generated files, and tool required to build GCC assuming all
> auto-generated files are up-to-date.  You should make it so that tr
> is not used if the timestamps indicate that the documentation
> is up-to-date.

The rebuild/nag part is inside the backend's t-snip so that only people
(re)building that target will trigger the rebuild and checking

> Look for the s-tm-texi rule in Makefile.in, it normalizes the line ending
> using tr (while taking care of a Solaris oddity), before comparing it to
> the existing version.

Thanks, the patch uses the same technique now:

http://gcc.gnu.org/ml/gcc-patches/2012-05/msg01982.html

Johann

Reply via email to