-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfind_incomplete_install
More file actions
executable file
·46 lines (38 loc) · 986 Bytes
/
find_incomplete_install
File metadata and controls
executable file
·46 lines (38 loc) · 986 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
# look for potentially incomplete installations in apps
# criterion:
# - missing *.eb file in easybuild/ or easybuild/reprod
#
# Ruoshi Sun
# 2020-02-18
if [ $# -eq 0 ]; then
echo "Usage: `basename $0` YYYYMM [...]"
exit 1
fi
YYYYMMs=$@
function search_eb {
CATEGORY=$1
DEPTH=$2
incomplete=()
cd $APPDIR/$YYYYMM/software/standard/$CATEGORY
echo "$CATEGORY:"
find -maxdepth $DEPTH -mindepth $DEPTH -type d '!' -exec sh -c 'ls -1 "{}"/easybuild 2>/dev/null|egrep -iq "^*\.eb$"' ';' -print
}
for YYYYMM in $YYYYMMs; do
echo "[$YYYYMM]"
if [[ $YYYYMM == "202412"* ]]; then
APPDIR=/sfs/applications
else
if [[ $YYYYMM == *"_build" ]]; then
APPDIR=/sfs/weka/applications
else
APPDIR=/sfs/gpfs/tardis/applications
fi
fi
search_eb core 2
search_eb compiler 4
search_eb mpi 6
search_eb toolchains 2
search_eb container 4
echo
done