Commit 3983e189 authored by root's avatar root
Browse files

adding a gdal modulefile for gdal 3.0.4

parent 0846d79f
......@@ -49,4 +49,4 @@ prepend-path PATH $GDAL_CURPATH/bin
prepend-path LD_LIBRARY_PATH $GDAL_CURPATH/lib
setenv GDAL_DATA $GDAL_CURPATH/share/gdal/
append-path PE_PRODUCT_LIST GDAL
append-path PE_PRODUCT_LIST GDAL.$GDAL_LEVEL
#%Module######################################################################
#
# 20200224 GDAL 3.0.4 modulefile
#
proc ModulesHelp { } {
puts stderr "This modulefile defines the library paths and"
puts stderr "include paths needed to use GDAL 3.0.4"
puts stderr "The program GDAL 3.0.4"
puts stderr "is added to PATH."
}
set rel [uname release]
global prodlist
set prodlist {proj/6.3.1 hdf5/1.10.6-parallel}
set is_module_rm [module-info mode remove]
catch {set modulehomes $env(MODULEPATH)}
if { [ module-info mode load ] } {
foreach prod $prodlist {
foreach mfilehome [ split $modulehomes :] {
if { [file exists $mfilehome/$prod] } {
module load $prod
}
}
}
}
if { [ module-info mode remove ] } {
foreach prod $prodlist {
foreach mfilehome [ split $modulehomes :] {
if { [file exists $mfilehome/$prod] } {
module unload $prod
}
}
}
}
set GDAL_LEVEL 3.0.4
set GDAL_CURPATH /share/apps/bin/gdal/$GDAL_LEVEL/
prepend-path PATH $GDAL_CURPATH/bin
prepend-path LD_LIBRARY_PATH $GDAL_CURPATH/lib
setenv GDAL_DATA $GDAL_CURPATH/share/gdal/
append-path PE_PRODUCT_LIST GDAL.$GDAL_LEVEL
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment