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
3f9227ce
Commit
3f9227ce
authored
3 years ago
by
lche0021
Browse files
Options
Downloads
Patches
Plain Diff
update listdeps
parent
02097a9a
No related branches found
Branches containing commit
No related tags found
1 merge request
!464
Fix listdeps
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
smoke_test/listdeps
+10
-4
10 additions, 4 deletions
smoke_test/listdeps
with
10 additions
and
4 deletions
smoke_test/listdeps
+
10
−
4
View file @
3f9227ce
...
...
@@ -18,11 +18,17 @@ fi
mkdir
-p
$software
for
ver
in
${
version
[@]
}
;
do
touch
$software
/
$ver
;
done
for
i
in
$(
ls
-d
/usr/local/
*
/
)
;
do
name
=
$(
basename
$i
)
load_ver
=
$(
module show
$name
2>&1 |
sed
-n
"s/module.*load
\
${
software
}
\/\(
.*
\)
/
\1
/p"
)
if
[
!
-z
$load_ver
]
&&
[
-f
$software
/
$load_ver
]
;
then
echo
$name
>>
$software
/
$load_ver
fi
if
[[
-r
"/usr/local/Modules/modulefiles/
$name
"
]]
;
then
vers
=
$(
ls
/usr/local/Modules/modulefiles/
$name
)
fi
for
ver
in
${
vers
[@]
}
;
do
load_ver
=
$(
module show
$name
/
$ver
2>&1 |
sed
-n
"s/module.*load
\
${
software
}
\/\(
.*
\)
/
\1
/p"
)
if
[
!
-z
$load_ver
]
&&
[
-f
$software
/
$load_ver
]
;
then
echo
$name
/
$ver
>>
$software
/
$load_ver
fi
done
done
set
+e
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