Jon Rood
158f99f9ad
Return an error exit code if spack cd does not succeed. ( #4623 )
...
* Return an error exit code if spack cd does not succeed.
* Reducing amount of return statements in spack cd exit code.
2017-06-28 06:41:04 -05:00
Todd Gamblin
cac4362f64
Make LICENSE recognizable by GitHub. ( #4598 )
2017-06-24 22:22:55 -07:00
Todd Gamblin
fa3e91bf2a
Revert "Add lmod files to MODULEPATH" ( #3917 )
...
* Revert "Add lmod files to MODULEPATH (#3912 )"
This reverts commit 186d1f4511
.
2017-04-20 03:05:44 -07:00
Adam J. Stewart
186d1f4511
Add lmod files to MODULEPATH ( #3912 )
2017-04-19 21:30:08 -07:00
Adam J. Stewart
941dfcbe43
Bash Programmable Completion for Spack ( #3026 )
2017-02-06 12:34:35 -08:00
Michael Kuhn
258dfc707d
Export spack function so it works in subshells ( #2908 )
2017-01-23 15:29:25 -08:00
Adam J. Stewart
6cc9b31747
Allow shell support to work when set -u is set ( #2418 )
2016-11-29 17:04:29 -08:00
Massimiliano Culpo
296a349d49
setup script for bash : fixes #2209 for sh setup ( #2212 )
2016-11-04 12:00:01 -07:00
Michael Kuhn
732c24f603
Fix recursive module loading.
2016-07-21 13:15:53 +02:00
alalazo
a96eb7096d
Merge branch 'develop' of https://github.com/LLNL/spack into features/module_refresh
...
Conflicts:
share/spack/setup-env.sh
2016-07-18 14:12:47 +02:00
Michael Kuhn
64d91943ec
Support --dependencies for recursively loading modules.
2016-07-14 20:14:06 +02:00
Michael Kuhn
fcfe2618d5
Improve shell integration.
...
Enable sh emulation for Zsh and allow loading modules recursively.
2016-07-13 20:33:14 +02:00
alalazo
b71d430af6
module : can regenerate single module files, homogenized cli options
...
spack module :
- refresh accepts a constraint
- find and refresh share common cli options
- ask for confirmation before refreshing
- deleting the module file tree is now optional
2016-06-28 19:28:18 +02:00
Todd Gamblin
e7ced54369
Correct LLNL LGPL license template for clarity.
2016-05-11 21:22:25 -07:00
alalazo
9eee71edf7
Merge branch 'develop' of https://github.com/LLNL/spack into features/custom_modulefile_from_config
2016-05-10 11:13:19 +02:00
Tom Scogland
584501a1cc
switched test to use -d for location check
2016-04-29 09:34:18 -07:00
Tom Scogland
10d8ed4d98
check that a target directory exists before committing to cd
2016-04-28 15:43:05 -07:00
alalazo
c69acfa5c8
naming work correctly
2016-04-18 13:22:04 +02:00
Erik Schnetter
f5f7d47be1
Support Bash "-u" mode
2016-03-19 18:42:39 -04:00
Tom Scogland
926efed31c
another portability fix, this time for zsh/non-bash sh
...
Yay for non-portable declaration syntax. After the previous screwiness
I ran this through a number of shells, and found that this is the most
portable version I coudl seem to get.
2015-12-30 10:55:52 -08:00
Tom Scogland
8726d2fe2e
removing ill-fated array check for non-portability
2015-12-30 10:29:11 -08:00
Todd Gamblin
3e3667f254
Revert "removing check as it can cause failures in zsh"
...
This reverts commit 496e485691
.
Undo overly large set of changes -- LLVM wasn't ready. Tom can
recommit just the zsh stuff.
2015-12-30 10:20:27 -08:00
Tom Scogland
496e485691
removing check as it can cause failures in zsh
2015-12-30 10:13:46 -08:00
Tom Scogland
d7607973fa
fix for array handling in ancient bash
...
fixes #284
2015-12-29 09:04:54 -08:00
Mike Nolta
527154e6df
fix env module sys_type on non-LLNL systems
2015-12-19 16:34:24 -05:00
John Westlund
3e1ba6cc24
remove possible trailing slash in _sp_prefix or _sp_share_dir
2015-12-18 21:28:44 -08:00
Todd Gamblin
a173324069
Merge pull request #205 from trws/shell-arg-handling-fix
...
fix for the shell arg handling issues
2015-12-17 23:01:46 -08:00
Todd Gamblin
c41b9b7ddc
Change github.com/scalability-llnl to github.com/llnl everywhere.
2015-12-09 01:24:15 -08:00
Tom Scogland
3ce99cf4e1
fix for the shell arg handling issues
...
The setup-env.sh script now saves off the argument array before shifting off
all the arguments so that the final command invocation doesn't arbitrarily
requote the arguments. All external quoting is preserved now. This has been
thoroughly tested with zsh, but should probably be tested with bash etc.
before acceptance.
2015-11-25 11:02:51 -08:00
Tom Scogland
b98454b8b2
fixing regular expression matches to use regular expression syntax instead of globbing syntax
2015-06-09 19:38:35 -07:00
Alfredo Gimenez
d95d48bbe6
py-mako and fix for setup-env.sh
2015-02-06 16:43:21 -08:00
Todd Gamblin
70475d08c0
Bugfix for spack cd -h
2014-09-29 22:39:36 -07:00
Todd Gamblin
d87a652582
Add spack cd and spack location commands.
...
- Better shell support for cd'ing into directories
- Fix some csh weirdness with nested aliases.
2014-08-22 11:00:19 -07:00
Todd Gamblin
eb5efed421
Merge branch 'features/postgresql' into develop
...
- add spack cd command.
- Fix bug in modules hook
Conflicts:
lib/spack/spack/cmd/stage.py
lib/spack/spack/hooks/dotkit.py
share/spack/setup-env.bash
2014-08-21 22:59:39 -07:00
Todd Gamblin
b601fd08ca
Bugfixes for csh environment modules.
2014-08-17 01:41:32 -07:00
Todd Gamblin
221cf6acb9
Consolidate most module code into spack.modules and spack.cmd.module
...
- One file with all the module classes (spack/modules.py)
- Has an EnvModule superclass that does most of the work and consolidates common code
- Subclasses have specializations for different module systems (TclModule, Dotkit)
- One command (spack module) for all the types of modules to use
- the one command is used by the scripts, only need to maintain in one place
- has some subcommands for different module types, but they're handled mostly generically.
- Consolidate zsh support into a single setup-env.sh script.
2014-08-16 14:53:57 -07:00