Re: build issues

From: Jean Bréfort <jean.brefort_at_normalesup.org>
Date: Sun Dec 03 2006 - 07:59:04 CET

Le samedi 02 décembre 2006 à 17:09 -0500, Hubert Figuiere a écrit :
> Jean Bréfort wrote:
> > -automake --version | perl -ne 'if (/\(GNU automake\) ([0-9].[0-9])/)
> > {print; if ($1 < 1.4) {exit 1;}}'
> > +automake --version | perl -ne 'if (/\(GNU automake\)
> > ([0-9].[0-9][0-9])/) {print; exit 0;} elsif (/\(GNU automake\)
> > ([0-9].[0-9])/) {print; if ($1 < 1.4) {exit 1;}} else {exit 1;}'
>
> Why not using this regexp instead?
>
> /\(GNU automake\) ([0-9]\.[0-9]*)/
>
> Makes match one or more digit after the dot. Note that I also escaped
> the "." as it should have been.

I don't know if the dot must be escaped, but without that, at leaset, it
does not work. Without the *, the comparison is made between 1.1 and 1.4
and with it between 1.10 and 1.4. Both (1.1 and 1.10) are lower than
1.4. Escaping the dot does not seem to change anything to the result.

Jean
Received on Sun Dec 3 07:54:16 2006

This archive was generated by hypermail 2.1.8 : Sun Dec 03 2006 - 07:54:16 CET