So how about this

(ld --help) | awk '{for (i=1;i<=NF;i++) if ($i ~ /build-id/){n++} }; END 
{print n}'

This will return a 1 if it finds the string build-id in the ld help. 

/*********************
Marc Karasek
MTS
Sun Microsystems
mailto:[EMAIL PROTECTED]
ph:770.360.6415
*********************/



Uwe Hermann wrote:
> On Mon, Dec 17, 2007 at 02:55:35PM -0500, Marc Karasek wrote:
>   
>> That would work, but this brings up a rather interesting point.  What 
>> are we todo about all the other Distros?   At some point (if not 
>> already) they will also face a similar issue.
>>     
>
> Yep, true. The correct thing IMO is to check for the actual feature/bug,
> not for version number strings of compilers or programs or distros.
>
>
> Uwe.
>   

-- 
linuxbios mailing list
[email protected]
http://www.linuxbios.org/mailman/listinfo/linuxbios

Reply via email to