<br><br>
<div class="gmail_quote">2009/1/20 Kilian CAVALOTTI <span dir="ltr"><<a href="mailto:kilian.cavalotti.work@gmail.com">kilian.cavalotti.work@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi John,<br>
<div class="Ih2E3d"><br><br>I would try to determine the machine type in the module file itself. Not sure<br>if a modulefile could get the result of an external $(uname -m | sed<br>'s/x86_64/intel64/;s/i[3-6]86/ia32/'), but the modulefile(4) manpage mentions<br>
a uname directive.</div></blockquote>
<div> </div>
<div>Yes, you can do that, for example:</div>
<div> </div>
<div> if { [file exists "/bin/uname"]} {<br> set machinetype [ exec /bin/uname -m ]<br> if { $machinetype == "ia64" } {<br></div>
<div> </div>
<div> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="Ih2E3d"><span id=""></span><br><br>For me, Intel xxxvars.{c,}sh files never really fit into the module model. But<br>I guess that's not what they have been designed for. So I used to give a look<br>at was they do, which is often not much, and try to re-implement them using a<br>
modulefile. </div></blockquote>
<div>Thankyou, that's useful.</div>
<div> </div></div>