-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add lmod_update_system_cache.sh script in contrib #58
Conversation
|
||
# figure out location of Lmod cache and cache timestamp file via 'ml --config' | ||
LMOD_CACHE_DIR=`ml --config 2>&1 | grep -A 2 "Cache Directory" | tail -1 | tr -s ' ' | cut -f1 -d' '` | ||
LMOD_CACHE_TIMESTAMP_FILE=`ml --config 2>&1 | grep -A 2 "Cache Directory" | tail -1 | tr -s ' ' | cut -f2 -d' '` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are good defaults imho, but it should be possible to tweak these
so, these should become LMOD_CACHE_DIR_DEFAULT
and LMOD_CACHE_TIMESTAMP_FILE_DEFAULT
, and then LMOD_CACHE_DIR
and LMOD_CACHE_TIMESTAMP_FILE
should be picking up those default values unless they're already defined
@rtmclay: thoughts on this? |
This script need to take arguments to specify the following:
I think that it should build moduleT, dbT by default. But it should be able to build the reverseMapT if asked. @boegel: comments? |
Also there should be an option which says extract the locations from module --config. It should only work when there is only one cache directory and timestamp file. |
…e_system_cache_script
…rse command line options
@rtmclay: I've pushed a new version of the script. There are a couple of minor things I would like to see changed before this is merged in, see the Any suggestions for other improvements are welcome, but I like where this is going. |
@rtmclay: we'll also need to update the |
add lmod_update_system_cache.sh script in contrib
This script is a rewrite of the existing createSystemCacheFile.sh. I feel this is better organised, and since it allows for verbose debug logging to stdout, it's easier to use.
It now hardcodes a couple of settings, that should be modified. I'll indicate what should be changed by making inline remarks.