Files
modules/contrib/modulefiles
Xavier Delaruelle 58476f8117 contrib: fix unloading in versions modulefiles
Update *versions* modulefiles generated when --enable-versioning
installation option is set: fix `module unload` commands in these
modulefiles to avoid defining a conflict toward module to unload.

These *versions* modulefiles are broken since Modules 4.2, where the
automated module handling feature has been added.

Existing *versions* modulefiles for Modules 4.2 and upward should be
fixed with the following kind of script:

```
for i in /usr/local/Modules/versions/*; do
    version=$(basename "$i")
    version=$i
    major=${version:0:1}
    minor=${version:2:1}
    if [[ "$major" -gt 4 || ("$major" -eq 4 && "$minor" -gt 1) ]]; then
        sed -i "s|module unload|module unload --not-req|" "$i"
    fi
done
```

Fixes 531
2024-06-11 05:40:17 +02:00
..
2023-09-02 09:22:49 +02:00
2023-09-02 09:22:49 +02:00
2023-09-02 09:22:49 +02:00