Commit Graph

21 Commits

Author SHA1 Message Date
Xavier Delaruelle
dcd6025503 install/ts/doc: install and test envml.cmd along other *.cmd 2020-03-10 07:44:20 +01:00
Xavier Delaruelle
d787bc14ac script: apply same module enablement check in all *.cmd 2020-03-10 07:44:20 +01:00
Jacques Raphanel
ae235a87ad script: introduce envml.cmd for windows
Provide a dedicated batch file to provide similar behavior of envml bash
script but for CMD Windows shell. Update existing envml bash script to
provide same behavior for cmd and sh file (split argument over ';'
character, in addition to '&' character).
2020-03-10 07:44:20 +01:00
Xavier Delaruelle
25e75401f3 script: mt exits in err if ts ok but review failed 2020-03-08 10:09:32 +01:00
Xavier Delaruelle
66ea61c1c4 script: handle variable value change in createmodule.sh
When analyzing environment variable changes applied by shell script
passed as argument, produce a `setenv` modulefile statement for any
variable found set prior script evaluation and for which value is
completely changed after script evaluation.

Fixes #320
2020-03-05 05:45:46 +01:00
Xavier Delaruelle
0e43e3592d script: adapt nglfar2ccov to nagelfar new format output
Analyzed script name is now reported with its path name.
2020-02-25 06:38:42 +01:00
Xavier Delaruelle
6b95e5064e script: fix path deduplication in createmodule.sh
Fixes #316
2020-02-19 21:03:37 +01:00
Armin Wehrfritz
a9e8019253 script: fix createmodule.py for python3
Fixes #315
2020-02-17 15:50:52 +01:00
Xavier Delaruelle
9535266a60 install: build createmodule.py/gitlog2changelog.py to set shebang
Adapt configure script and Makefile to detect `python` command location
and set it as shebang for `createmodule.py` and `gitlog2changelog.py`.
If python command is not found python3 then python2 are searched.
2020-02-10 07:00:32 +01:00
Xavier Delaruelle
a28181074e install/script: abort auxiliary tools download after few seconds
Abort download of icdiff, nagelfar or tclsh83 after 2 timeouts of 5
seconds and record download failure for icdiff to avoid mt script to
attempt a new download tentative every time it is called.
2020-02-03 20:46:15 +01:00
Andrey Portnoy
e5c19bdd74 Fix typo in add.modules.in 2020-02-03 19:34:03 +01:00
Xavier Delaruelle
985aa88590 script: fix createmodule.{sh,py} for script outputting text
Inhibit output generated by scripts evaluated by createmodule.sh and
createmodule.py to ensure these outputs will not get in the way when
analyzing the environment change done by the evaluated scripts.

Fixes #309
2020-02-01 15:25:04 +01:00
Xavier Delaruelle
1ef61d6e77 script: avoid shell func defs in createmodule.sh
Fix createmodule.sh script to correctly analyses environment when shell
functions are found defined in it. These shell function definitions are
skipped.
2020-02-01 13:28:51 +01:00
Xavier Delaruelle
ea8052c23b script: add TESTINSTALL.bat script and ship it in dist-win 2020-01-25 16:21:53 +01:00
Xavier Delaruelle
13a99e387a script: ensure relevant exit code is set at end of win scripts 2020-01-25 16:21:53 +01:00
Xavier Delaruelle
fe3765454b script: move INSTALL.bat & UNINSTALL.bat in script dir 2020-01-25 16:21:53 +01:00
Xavier Delaruelle
d6362eef3d script/init: quote path variables in win-specific scripts
To handle installation path containing whitespaces like "C:\Program
Files\Environment Modules".
2020-01-17 21:39:22 +01:00
Xavier Delaruelle
fff8213e0b install: add ml.cmd wrapper on Windows installation 2020-01-17 21:39:22 +01:00
Xavier Delaruelle
20597cb580 script: simplify module.cmd batch file
Execute initialization script if MODULES_CMD environment variable is not
found defined.
2020-01-14 06:13:30 +01:00
Xavier Delaruelle
d95a66233a script: move win-specific module.cmd file in script dir 2020-01-14 06:13:30 +01:00
Xavier Delaruelle
9ade952bea script: move all dist. and maint. scripts in a script dir 2020-01-12 13:31:21 +01:00