apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Jung <rainer.j...@kippdata.de>
Subject Re: svn commit: r1535157 - /apr/apr/trunk/configure.in
Date Wed, 23 Oct 2013 23:39:09 GMT
On 23.10.2013 22:22, jorton@apache.org wrote:
> Author: jorton
> Date: Wed Oct 23 20:22:57 2013
> New Revision: 1535157
> 
> URL: http://svn.apache.org/r1535157
> Log:
> * configure.in: Fix r1535027 for Linux kernel versions x.0.y.
> 
> Modified:
>     apr/apr/trunk/configure.in
> 
> Modified: apr/apr/trunk/configure.in
> URL: http://svn.apache.org/viewvc/apr/apr/trunk/configure.in?rev=1535157&r1=1535156&r2=1535157&view=diff
> ==============================================================================
> --- apr/apr/trunk/configure.in (original)
> +++ apr/apr/trunk/configure.in Wed Oct 23 20:22:57 2013
> @@ -681,7 +681,7 @@ case $host in
>          ;;
>      *linux*)
>          os_major=[`uname -r | sed -e 's/\([1-9][0-9]*\)\..*/\1/'`]
> -        os_minor=[`uname -r | sed -e 's/[1-9][0-9]*\.\([1-9][0-9]*\)\..*/\1/'`]
> +        os_minor=[`uname -r | sed -e 's/[1-9][0-9]*\.\([0-9]+\)\..*/\1/'`]

Solaris sed only supports basic regexp, which knows about "*" but not "+".

So instead of "[0-9]+" it could be "[0-9][0-9]*" or "[0-9]\{1,\}",
whichever you find less annoying.

Regards,

Rainer

Mime
View raw message