Re: build issues

From: Hubert Figuiere <hfiguiere_at_teaser.fr>
Date: Sat Dec 02 2006 - 23:09:14 CET

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.

Hub
Received on Sat Dec 2 23:09:37 2006

This archive was generated by hypermail 2.1.8 : Sat Dec 02 2006 - 23:09:37 CET