Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
it4i-modules
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
SCS
it4i-modules
Commits
eab83110
Commit
eab83110
authored
6 years ago
by
David Hrbáč
Browse files
Options
Downloads
Patches
Plain Diff
Code refactored
parent
cff9635b
No related branches found
No related tags found
1 merge request
!3
Enabled CI
Pipeline
#5282
failed
6 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
get_modules.sh
+27
-46
27 additions, 46 deletions
get_modules.sh
with
27 additions
and
46 deletions
get_modules.sh
+
27
−
46
View file @
eab83110
...
@@ -10,60 +10,41 @@ if [ ! -z "$STATE" ]; then
...
@@ -10,60 +10,41 @@ if [ ! -z "$STATE" ]; then
exit
0
exit
0
fi
fi
if
[
!
-z
`
hostname
-f
|
grep
"bullx"
`
]
;
then
if
hostname
-f
|
grep
-q
"bullx"
;
then
ml
--show-hidden
-t
av
2>&1
>
/dev/null|
awk
'{print $1 ",1"}'
|
grep
-v
-e
'/,\|:'
|
sort
-u
>
anselm.csv
ml
--show-hidden
-t
av
>
/dev/null
2>&1
|
awk
'{print $1 ",1"}'
|
grep
-v
-e
'/,\|:'
|
sort
-u
>
anselm.csv
./modules.py
>
anselm.md
./modules.py
>
anselm.md
else
else
ml
--show-hidden
-t
av
2>&1
>
/dev/null|
awk
'{print $1 ",2"}'
|
grep
-v
-e
'/,\|:'
|
sort
-u
>
salomon.csv
ml
--show-hidden
-t
av
>
/dev/null
2>&1
|
awk
'{print $1 ",2"}'
|
grep
-v
-e
'/,\|:'
|
sort
-u
>
salomon.csv
./modules.py
>
salomon.md
./modules.py
>
salomon.md
MODULEBASE
=
"/appsuv/modules"
for
resource
in
"/appsuv/modules,uv2000"
"/apps/phi/modules,phi"
MODULEPATH
=
""
do
MODULEBASE
=
${
resource
%,*
}
for
dir
in
`
ls
$MODULEBASE
`
FILENAME
=
${
resource
#*,
}
do
MODULEPATH
=
""
# Exclude following directories
if
[[
(
$dir
==
"all"
)
]]
;
then
for
dir
in
$MODULEBASE
continue
do
fi
# Exclude following directories
# In case that it's directory
if
[[
(
$(
basename
$dir
)
==
"all"
)
]]
;
then
if
[
-d
$MODULEBASE
/
$dir
]
;
then
continue
if
[
-z
$MODULEPATH
]
;
then
MODULEPATH
=
"
$MODULEBASE
/
$dir
"
else
MODULEPATH
=
"
$MODULEPATH
:
$MODULEBASE
/
$dir
"
fi
fi
fi
# In case that it's directory
done
if
[
-d
$dir
]
;
then
if
[
-z
$MODULEPATH
]
;
then
export
MODULEPATH
MODULEPATH
=
$dir
else
ml
--show-hidden
-t
av 2>&1
>
/dev/null|
awk
'{print $1 ",4"}'
|
grep
-v
-e
'/,\|:'
|
sort
-u
>
uv2000.csv
MODULEPATH
=
"
$MODULEPATH
:
$MODULEBASE
/
$dir
"
./modules.py
>
uv2000.md
fi
MODULEBASE
=
"/apps/phi/modules"
MODULEPATH
=
""
for
dir
in
`
ls
$MODULEBASE
`
do
# Exclude following directories
if
[[
(
$dir
==
"all"
)
]]
;
then
continue
fi
# In case that it's directory
if
[
-d
$MODULEBASE
/
$dir
]
;
then
if
[
-z
$MODULEPATH
]
;
then
MODULEPATH
=
"
$MODULEBASE
/
$dir
"
else
MODULEPATH
=
"
$MODULEPATH
:
$MODULEBASE
/
$dir
"
fi
fi
fi
done
done
export
MODULEPATH
export
MODULEPATH
ml
--show-hidden
-t
av
>
/dev/null 2>&1|
awk
'{print $1 ",4"}'
|
grep
-v
-e
'/,\|:'
|
sort
-u
>
"
$FILENAME
"
.csv
./modules.py
>
"
$FILENAME
"
.md
ml
--show-hidden
-t
av 2>&1
>
/dev/null|
awk
'{print $1 ",8"}'
|
grep
-v
-e
'/,\|:'
|
sort
-u
>
phi.csv
done
./modules.py
>
phi.md
fi
fi
DATE
=
$(
date
-R
)
DATE
=
$(
date
-R
)
...
...
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