On Thu, Sep 13, 2007 at 01:05:06PM -0700, Chris Wedgwood wrote:
> On Thu, Sep 13, 2007 at 10:17:27PM +0200, Oleg Verych wrote:
>
> > That particular one-line `ALTARCH := i386' of course can be matched
> > simpler, because there's only *one* (as written above) whitespace and no
> > make's assignment variations,
>
> The goal is to extract the RHS from ALTARCH := ...
printf "C=i386\n ALTARCH = i386
ALTARCH= i386
ALTARCH :=i386
A=i386
ALTARCH := i386
ALTARCH?=i386
" | sed -n '
/^[[:blank:]]*ALTARCH[^?]*=/{
/[[:blank:]:]*=[[:blank:]]*i386[[:blank:]]*$/{
s_.*_i386_;=;p;
}
}'
Maybe this one then, to much as much valid assigments as possible :)
____
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]