For each version of a different tool you have a separate
module file e.g.:
vendorA/v1.0
vendorA/v1.1
vendorA/v2.0
vendorB/r2002.01
vendorB/r2002.06
for vendorA and vendorB you can have a default version
pointed to by the file .version:
% ls -a <path>/modules/modulefiles/toolX
. .version v03.20.s004 v03.20.s007
v3.30.s014
.. 3.11.p001 v03.20.s005 v3.20.p1
% cat <path>/modules/modulefiles/toolX/.version
#%Module1.0##############################################
#######################
##
##
##
#
set ModulesVersion "3.11.p001"
% module load toolX
#### gives he default
% module load toolX/v03.20.s005
#### chooses version v03.20.s005
As far as OS dependencies...in the modulefile
add code like this...
set osname [ uname sysname ]
if {[ string compare $osname "SunOS" ] == 0} {
set ncdir /<path>/toolX
set nctools tools.sun4v
} elseif {[ string compare $osname "Linux" ] == 0} {
set ncdir /<path>/toolX-linux
set nctools tools.lnx86
} else {
# some kind of error!
puts stderr "Error: This OS, $osname, is not
supported with\
[module-info specified]!"
}
I hope this helps...
Sorry if things wrap funny...
/Ed
> I try to learn how to set up Modules, but I have not yet found any
> documentation on how to set up a cross-platform environment where you have
> different platforms (Solaris, HP-UX, SGI, Linux), os revisions (Solaris
> 5.6, 7, 8; HP-UX 9, 10.20, 11; etc) and, of course, different application
> versions.
>
> Are there any documents on this, does anyone have any experience - or do I
> have to find out the hard way? :-)
>
> Stefan
>
> --
> Stefan Svensson Phone: +46-90-135000
> Himlastigen 14 WWW: http://raggmunk.nu/~stefan/
> 906 41 Umeå, Sweden ICQ: 1956984
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Modules-interest mailing list
> Mod...@li...
> https://lists.sourceforge.net/lists/listinfo/modules-interest
|