Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPCasCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hpc-team
HPCasCode
Commits
c470ad54
Commit
c470ad54
authored
4 years ago
by
lche0021
Browse files
Options
Downloads
Patches
Plain Diff
generated all modules list in TARGET_MODULEPATH
parent
8653a50d
No related branches found
No related tags found
2 merge requests
!464
Fix listdeps
,
!442
Smoke test
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
smoke_test/generate_modules_list
+14
-0
14 additions, 0 deletions
smoke_test/generate_modules_list
with
14 additions
and
0 deletions
smoke_test/generate_modules_list
0 → 100755
+
14
−
0
View file @
c470ad54
#!/bin/bash
TARGET_MODULEPATH
=
"/usr/local/Modules/modulefiles"
OUTPUT_PATH
=
"application_list.txt"
echo
""
>
$OUTPUT_PATH
MODULEPATH
=
$TARGET_MODULEPATH
module avail
-t
2>&1 | python
-c
"
import sys
with open('
$OUTPUT_PATH
', 'w') as fout:
for line in sys.stdin:
linelist = line.split('/')
if len(linelist) != 2:
continue
linelist[-1] = linelist[-1].replace('(default)','')
fout.write('/'.join(linelist))
"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment