Commit Graph

320 Commits

Author SHA1 Message Date
gsell 54eeae4df3 Merge branch '38-implement-generic-print-help-function' into 'master'
Resolve "implement generic print help function"

Closes #38

See merge request Pmodules/src!9
2019-05-22 10:36:55 +02:00
gsell 6521632ac3 fixes in a comment 2019-05-22 10:35:20 +02:00
gsell 94bab4d302 several fixes in modulecmd.bash
- in sub-command 'load': print conflict message not just load failed
- in sub-command 'search': equal sign can now be used for options
  '--with' and '--release'
- sub-command options can now be specified on the LHS of the sub-command
2019-05-21 16:40:50 +02:00
gsell 54bf9c3d6c minor optimization in sub-command 'use', store usage text with key 'help 2019-05-19 20:55:45 +02:00
gsell 54d6aa5ff7 implementation of generic help function and better option handling 2019-05-17 19:12:52 +02:00
gsell 73740dbc68 Merge branch '37-switch-command-does-not-work' into 'master'
Resolve "switch command does not work"

Closes #37

See merge request Pmodules/src!8
2019-05-16 16:55:40 +02:00
gsell 0fe3048804 re-implementation of sub-command 'swap'
- sub-command 'swap' is now implemented via unload/load
- tmpfile variable in subcommand_load() cannot be read-only any more
2019-05-16 16:44:23 +02:00
gsell 41b6e2a26e cleanup in libmodules.tcl
- unused procedures removed
- implementation of the output of the .info file moved to modulecmd.bash
- swap is now implemented in modulecmd.bash as unload followed by a load
2019-05-16 16:42:05 +02:00
gsell e86930feee simplified module() function, do NOT loop over arguments
- all arguments are passed to modulemcd without being parsed/checked
2019-05-16 16:06:26 +02:00
gsell ab117e94fb better debug statements in libmodules.tcl 2019-05-16 14:40:17 +02:00
gsell df909d8640 Merge branch '36-sub-command-unload-must-eval-output-from-modulecmd-bin' into 'master'
Resolve "sub-command unload must eval output from modulecmd.bin"

Closes #36

See merge request Pmodules/src!7
2019-05-15 16:17:21 +02:00
gsell 05338d25b4 update of PMODULES_ENV fixed in subcommand 'unload'
Not all cached data has been updated while unloading a module amangst
other the list of used groups (UsedGroups)
2019-05-15 16:16:36 +02:00
gsell a1821a961b fixes 2019-05-15 15:01:48 +02:00
gsell 4f2558b524 Merge branch '35-path-must-be-initialized-in-profile-shell' into 'master'
Resolve "PATH must be initialized in profile.SHELL"

Closes #35

See merge request Pmodules/src!6
2019-05-15 10:41:41 +02:00
gsell 9d2974dd9c unset PMODULES_ENV during initialization 2019-05-14 14:54:46 +02:00
gsell 8b67fd45a3 cleanup double exports in profile.bash.in 2019-05-13 16:47:56 +02:00
gsell 6ef4dd3667 bugs in initialization of PATH fixed in modulecmd.bash.in
- prepend Pmodules bin directory to PATH
- export MANPATH
2019-05-13 16:47:17 +02:00
gsell 2c92aa659d prepend Pmodules bin directory to PATH 2019-05-13 16:44:11 +02:00
gsell f446d4cae9 libstd.bash: fixes in append_path() and prepend_path()
- use export instead of eval
2019-05-13 16:42:27 +02:00
gsell 4fcc74839c Merge branch '34-initialisation-cleanup' into 'master'
Resolve "initialisation cleanup"

Closes #34

See merge request Pmodules/src!4
2019-04-30 13:23:10 +02:00
gsell 251c0bad77 cleanup 2019-04-30 13:17:56 +02:00
gsell 07a643c742 review and cleanup
- libmodules.tcl: rename implementation to variant, fixes in file name joining
- modulecmd.bash.in: get available groups from 'GroupDepths'. There is no
  need to use a dedicated variable for housekeeping available groups.
2019-04-30 11:30:32 +02:00
gsell 6ad8cd07cd more cleanup
- PMODULES_USED_GROUPS renamed to UsedGroups, now saved to PMODULES_ENV
- fixes in exporting variables
2019-04-29 17:53:54 +02:00
gsell f05e9be3c1 cleanup initialisation
- Pmodules/bash: contains now only the 'module()' function, some sanity
  checks and initialization of bash completion plus unsetting some unused
  variables.
- Pmodules/libstd.bash: bug fixed in std::append_path if path includes spaces
- Pmodules/modulecmd.bash.in: (re-)initialize if 'PMODULES_ENV' is empty or
  unset
2019-04-29 17:15:01 +02:00
gsell 1d6dcfbede Merge branch '33-in-modbuild-arguments-must-be-parsed-before-souring-the-configuration-file' into 'master'
Resolve "in modbuild arguments must be parsed before souring the configuration file"

Closes #33

See merge request Pmodules/src!3
2019-04-17 14:37:34 +02:00
gsell 72a9a9d4e4 Resolve "in modbuild arguments must be parsed before souring the configuration file" 2019-04-17 14:37:34 +02:00
gsell 883511a1ff modulecmd: output with std::{die,info} reviewed 2019-04-09 17:17:23 +02:00
gsell 3024047514 libpbuild: fixed issue in building dependencies, abort if a target fails 2019-04-09 17:16:17 +02:00
gsell 67773741af version set to 1.0.0rc5 2019-04-09 17:14:16 +02:00
gsell 18cc1506a2 modbuild: various fixes and improvments
- option '--all-variants' is not required any more, a version can be passed
  as regex
- supress output from un-tar, configure, compile and install if not in
  verbose mode
- option '--enable-cleanup' added
- remove src directory after successful build by default
- an equal sign ('=') may prepend a version number passed as argument
- various fixes
- issue with using 'pbuild::use_{autotools,cmake}' outside a "prep"-
  function fixed
- installing depending shared libs improved
- abort if a target fails
2019-03-28 16:23:29 +01:00
gsell c059c07e23 master build script: issues with creation of modbuild fixed 2019-03-28 15:26:46 +01:00
gsell 486c80cdc6 set version to 1.0.0rc4 2019-03-28 15:21:31 +01:00
gsell aaef5a1bcf *~ added to ignore file 2019-03-28 15:20:26 +01:00
gsell 328d8e9b22 set Pmodules version to 1.0.0rc3, use current version other software
- bash, coreutils and Tcl updated
2019-03-12 14:57:39 +01:00
gsell 88148836ee handle modbuild.in in master build script 2019-03-12 14:55:37 +01:00
gsell f1f66349c2 fixes in modulecmd.bash.in
- fix issue with "puts stderr "foo bar" in modulefiles
- comment to subcommand_unload() edited
2019-03-12 14:54:52 +01:00
gsell c5012be804 fixes in libpbuild.bash
- create prefix directory after compilation succeeded
- path to 'true(1)' fixed
2019-03-12 14:52:31 +01:00
gsell d69dae78b8 define version as constant in modbuild, bugfix in reading configuration
modbuild must now be created with build configure
2019-03-12 14:48:03 +01:00
gsell 8ef4537aa9 bugfixes and cleanup/review of build system 1.0.0rc2 2019-03-08 17:04:49 +01:00
gsell fc9e554a9d no need to call pbuild::make_all in the build-scripts 2019-03-08 16:57:13 +01:00
gsell b3c52357ec set version to 1.0.0rc2 2019-03-08 16:56:24 +01:00
gsell 93a3e13477 export PMODULES_VERSION in master build script 2019-03-08 16:55:58 +01:00
gsell fec633cc99 major review of build systems, building of multiple version implemented
- option '--all-variants' added, if this option is set, all variants matching
  the given version(s) will be build
- the build-system uses the release specified in the variants file. If a
  dependency have an improper release, the build stops
- the library is now better isolated from the "main" programm.
- several variables and function have been refactored
1.0.0rc1
2019-02-22 16:16:54 +01:00
gsell b9c940600b bugfix in std::log(): do not append newline to format. 2019-02-22 16:04:21 +01:00
gsell 43a63f2967 missing line-feeds in calls of 'std::info' added 2019-02-17 18:07:06 +01:00
gsell 77c6af265f Pmodules/libpbuild: new release 'removed' added
If the release of a module is set to 'removed', modbuild checks whether
the module is still available and removes it if yes.
2019-01-21 17:27:09 +01:00
gsell faa8075d67 Pmodules/modbuild: minor changes in printing error messages 2019-01-21 17:24:00 +01:00
gsell cc79c7f602 libpbuild: function to install required shared libs added 2019-01-14 13:11:12 +01:00
gsell 3861002868 Pmodules/modulecmd.bash.in: bugfixes in subcommand_load()
- bug fixed in testing availability of module.
- bug fieed in loading dependencies: we must echo the output of the load
  command!
2018-12-27 18:01:11 +01:00
gsell 7918fe8680 bugfix in libpbuild.bash
bug fixed in function pbuild::module_is_avail(): set 'uvar' to '__unused__'
if second argument is empty/unset
2018-12-27 17:57:24 +01:00