On Thursday 28 August 2008 01:41:59 pm Zach Carter wrote:
> kern=`/bin/uname -r|cut -d. -f1-2|sed 's/\.//g'`
> if [ "$kern" == "24" ] || [ "$kern" == "26" ]; then
> kern="${kern}x86"
> if [ `/bin/uname -m` == "x86_64" ]; then
> kern="${kern}_64"
> fi
> else
> echo "unknown kernel $kernel"
> exit 1
> fi
I just realized, this part may need some tweaking, to make it work on Solaris,
AIX, HP, Windows, etc.
Unfortunately, I only have access to Linux boxes, but the general idea should
be easy to adapt to other OSes.
-Zach
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.opensolaris.org/pipermail/opengrok-discuss/attachments/20080828/05fb1b7b/attachment.html>