I have attached a awk script file that has a awk command to find the if you are currently running fc8 or not. This uses the /proc/version string, so a custom kernel will prob fail on this check.

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



ron minnich wrote:
On Dec 17, 2007 8:18 AM, Marc Karasek <[EMAIL PROTECTED]> wrote:
Was this option just keeping the Config.lb changes and using an
Environment Variable?

no.

If so were does the environment variable  get set?  Is it up to the
programmer or is it part of the build?


it would be part of the buildtarget step, which is not up to the
programmer and is not part of the actual build. buildtarget is a sort
of meta-build, wherein the build environment gets set up. This is the
right place to capture distro issues. I don't know why it did not hit
me sooner.

thanks

ron
{for (i=1;i<=NF;i++) if ($i=="2.17"){n++} }; END {print n}


(echo | ld --version) | awk '{for (i=1;i<=NF;i++) if 
($i=="2.17.50.0.18-1"){n++} }; END {print n}'


(cat /proc/version ) | awk '{for (i=1;i<=NF;i++) if ($i ~ /fc8/){n++} }; END 
{print n}'
-- 
linuxbios mailing list
linuxbios@linuxbios.org
http://www.linuxbios.org/mailman/listinfo/linuxbios

Reply via email to