[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensolaris-opengrok-discuss
Subject:    Re: [opengrok] unable to get history and annontate works
From:       "Zach Carter" <z.carter () F5 ! com>
Date:       2008-08-28 20:53:52
Message-ID: 200808281353.53113.z.carter () f5 ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]

[Attachment #4 (text/plain)]

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

[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>Re: [opengrok] unable to get history and annontate works</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>On Thursday 28 August 2008 01:41:59 pm Zach Carter wrote:<BR>
<BR>
&gt; kern=`/bin/uname -r|cut -d. -f1-2|sed 's/\.//g'`<BR>
&gt; if [ &quot;$kern&quot; == &quot;24&quot; ] || [ &quot;$kern&quot; == &quot;26&quot; ]; then<BR>
&gt;&nbsp;&nbsp;&nbsp; kern=&quot;${kern}x86&quot;<BR>
&gt;&nbsp;&nbsp;&nbsp; if [ `/bin/uname -m` == &quot;x86_64&quot; ]; then<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; kern=&quot;${kern}_64&quot;<BR>
&gt;&nbsp;&nbsp;&nbsp; fi<BR>
&gt; else<BR>
&gt;&nbsp;&nbsp;&nbsp; echo &quot;unknown kernel $kernel&quot;<BR>
&gt;&nbsp;&nbsp;&nbsp; exit 1<BR>
&gt; fi<BR>
<BR>
I just realized, this part may need some tweaking, to make it work on Solaris,<BR>
AIX, HP, Windows, etc.<BR>
<BR>
Unfortunately, I only have access to Linux boxes, but the general idea should<BR>
be easy to adapt to other OSes.<BR>
<BR>
-Zach<BR>
</FONT>
</P>

</BODY>
</HTML>

_______________________________________________
opengrok-discuss mailing list
opengrok-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic