Commit Graph
401 Commits
Author SHA1 Message Date
gsell 3a0ab71684 modulecmd: bugfix in sub-cmd 'use'
Missing return added if argument is a directory to add to
MODULEPATH
2022-07-28 16:12:20 +02:00
gsell d9cf0684cd modulecmd: unalias issue in sub-cmd purge fixed 2022-07-27 13:42:21 +02:00
gsell a7c50a9459 cleanup, re-factoring, minor fixes, comments added 2022-07-12 16:21:21 +02:00
gsell 06491fde93 modulecmd: issue with PMODULES_HOME fixed in sub-cmd purge
the env.variable PMODULES_HOME must be preserved.
2022-07-01 16:35:15 +02:00
gsell aa4838ed2e modulecmd: bugfix if a Pmodule module have been loaded
after loading a Pmodule module the module was not displayed
with 'module list', this has been fixed
2022-06-30 17:54:04 +02:00
gsell 5727cc9ef8 modulecmd: bugfix in sub-cmd use <group>
UsedOverlays must be used instead of OverlayInfo
2022-06-30 17:52:26 +02:00
gsell d408a73d89 modulecmd/libpmodules.bash: interface of compute_group_depth() changed
retrun result in a reference variable
2022-06-30 10:44:56 +02:00
gsell fbc64b0136 modulecmd: bugfix in sub-cmd search
- sorting fixed
2022-06-22 22:24:57 +02:00
gsell 8c247f673a code cleanup
there is one important change:
The keys in Dir2OverlayMap are now the modulefiles root + group name.
Example: New '/opt/psi/Tools', old '/opt/psi/Tools/modulefiles'
2022-06-13 11:06:37 +02:00
gsell d5ab3dd209 modulecmd: add overlay info to output of sub-command 'search' 2022-06-09 14:48:39 +02:00
gsell 1c39e8ded0 modulecmd: bugfix in initialising src_prefix in sub-cmd search 2022-06-09 14:46:27 +02:00
gsell 36453ff20a modulecmd: some comments added 2022-06-09 14:45:54 +02:00
gsell 047e7161b5 modulecmd: initialise Dir2OverlayMap for all available groups
till now Dir2OverlayMap was only initialise for used groups. This is
not sufficient, if a module outside the used groups is loaded via
module load group:name.
2022-06-09 14:41:22 +02:00
gsell 38b265af02 modulecmd: bugfix if MODULEPATH starts or ends with a colon 2022-06-09 14:36:47 +02:00
gsell 71671f9ff3 always add Pmodules libexec dir to search path to find and set binaries 2022-06-07 09:49:11 +02:00
gsell 1c98c12684 some varibales renamed
- OverlayList -> UsedOverlays
- OverlayDict -> OverlayInfo
2022-05-24 11:52:35 +02:00
gsell 25c302d91c modulecmd: PMODULES_ENV initialisation fixed
PMODULES_ENV must be initialised before modulecmd.bin is called
2022-05-24 10:10:20 +02:00
gsell 2e131c1f2a definition of overlay types moved to libpmodule.bash 2022-05-23 23:49:21 +02:00
gsell 454ae6ec15 modulecmd: bugfix in listing unused overlays 2022-05-23 23:48:14 +02:00
gsell 9c304009c3 module use: output of overlay info improved 2022-05-18 10:24:21 +02:00
gsell 94e7c72a14 MODULEPATH initialisation issue fixed 2022-05-18 10:23:31 +02:00
gsell 9a47e7b511 define yq as env. variable 2022-05-17 19:12:51 +02:00
gsell 32b2687936 YAML config files, more flexible overlays
- modulefiles must not any more in the same root directory as
  the software installation
2022-05-17 14:25:11 +02:00
gsell 0b43ed2280 derive PMODULES_ROOT from PMODULES_HOME 2022-05-13 11:32:35 +02:00
gsell 4503c5ef0c implementing new config file format 2022-04-06 09:36:17 +02:00
gsell ba0e6a7ce0 modulecmd: unsetting aliases in sub-command 'purge' fixed 2022-04-05 17:48:51 +02:00
gsell e2385ac368 modulecmd: on Linux base64 always wraps long line, fixed for Linux 2022-04-05 17:05:53 +02:00
gsell 078653c6c7 modulecmd: unsetting aliases fixed 2022-04-05 15:43:39 +02:00
gsell 7c500b7bf3 modulecmd: unsetting aliases fixed 2022-04-05 14:45:56 +02:00
gsell 314bb94f1f modulecmd: typos in output fixed 2022-03-02 09:25:12 +01:00
gsell ca59c2a24d modulecmd: base64 can be called without --wrap
- base64 on macOS does not support the option --wrap. Since we running
  it in a sub-process, the option is not required anyway.
2022-03-02 09:20:04 +01:00
gsell 4617b1ff39 modulecmd: search path fixed for macOS
- Pmodules libexec directory must be prepended - not appended
2022-03-02 09:17:16 +01:00
gsell 18dae1f6df modulecmd: improved output of available overlays in sub-cmd use 2022-02-18 13:08:13 +01:00
gsell dfca6fc2c9 modulecmd: bugfix in find_module()
The result of the find command was stored as string not as bash array.
2022-01-18 17:51:33 +01:00
gsell 7c12c6e77e modulecmd.bash: improved output of loaded and available overlays 2021-12-16 18:57:23 +01:00
gsell 20f01d1589 libmodules.bash: get_overlay_info() moved to libpmodules.bash 2021-12-16 18:55:59 +01:00
gsell 22672b9a95 modulecmd: bugfix in getting available modules 2021-12-16 18:55:05 +01:00
gsell 8c9e20ef71 modulecmd: normalize paths by replacing multiple slashes with one
A trailing slash is also removed.
2021-12-16 18:53:40 +01:00
gsell 7983a03221 modulecmd: bugfix in unloading overlay 2021-12-13 09:36:47 +01:00
gsell 2b3696f070 modulecmd: bugfix in get_overlay_info() 2021-12-13 09:36:06 +01:00
gsell dce6d0058f modulecmd: made get_module_prefix() global 2021-12-13 09:35:15 +01:00
gsell 225dd774ef modulecmd: save overlay type and prefix in OverlayDict 2021-12-10 14:13:47 +01:00
gsell e86b2fc7cb modulecmd: return overlay root as prefix if not set 2021-12-10 14:09:44 +01:00
gsell 7b2d0fcd58 modulecmd: use function get_module_prefix() in subcommand_load() 2021-12-10 14:05:06 +01:00
gsell 8cde81ff39 moduecmd: fixes and review of the functions use() and unuse()
- Overlay can be loaded by name and directory.
- The 'overlay' keyword has been removed
- fixes
2021-12-09 18:06:44 +01:00
gsell 62e7cd2e0a modulecmd: simplify code in removing replacing overlays 2021-12-09 18:04:51 +01:00
gsell 8237e61ab2 modulecmd: restrict removing overlays to top on stack 2021-12-09 18:02:40 +01:00
gsell 3d4df78def modulecmd: use_group() fix bug with replacing overlays 2021-12-09 18:00:53 +01:00
gsell 2b16e82bf8 modulecmd: use_overlay(): missing 'fi' added 2021-12-09 17:59:46 +01:00
gsell ec147e78be modulecmd: exit with err mesg if (un)use_group() is called for
hierarchical group
2021-12-09 17:56:34 +01:00