mirror of
https://code.it4i.cz/sccs/easyconfigs-it4i.git
synced 2025-04-08 07:52:11 +01:00
# modified: compare.sh
# new file: results/SALOMON-installed_from_not_installed.txt # new file: results/SALOMON-not_installed.txt # new file: results/SALOMON-warning-not.txt # new file: results/SALOMON-warning.txt # deleted: compare_result.md
This commit is contained in:
parent
b4cc8c1910
commit
c176215428
31
compare.sh
31
compare.sh
@ -2,21 +2,30 @@
|
||||
# skript pro kontrolu zda eb předpis, který je v easyconfigs-it4i je nainstalován
|
||||
|
||||
printf "\033c"
|
||||
printf "Prepare data for analyze ...\n"
|
||||
|
||||
NAME=$(hostname -f | cut -d '.' -f 2)
|
||||
if [ $NAME = "bullx" ]; then
|
||||
NAME="ANSELM"
|
||||
else
|
||||
NAME="SALOMON"
|
||||
fi
|
||||
|
||||
printf "Prepare data for analyse ...\n"
|
||||
|
||||
ml --show_hidden -t av 2>&1 > /dev/null| awk '{print $1 }' | grep -v "/apps/*" > ml_av
|
||||
|
||||
if [ "$1" = "not" ]; then
|
||||
find /apps/easybuild/easyconfigs-it4i/ -type f -name "*.eb" | grep "_not_installed/*" | cut -d '/' -f 7,8 | sed 's/.eb//' > eb-it4i_tmp
|
||||
echo -n "" >> "results/$NAME-installed_from_not_installed.txt"
|
||||
echo -n "" >> "results/$NAME-warning-not.txt"
|
||||
else
|
||||
find /apps/easybuild/easyconfigs-it4i/ -type f -name "*.eb" | grep -v "_not_installed/*" | cut -d '/' -f 6,7 | sed 's/.eb//' > eb-it4i_tmp
|
||||
echo -n "" >> "results/$NAME-not_installed.txt"
|
||||
echo -n "" > "results/$NAME-warning.txt"
|
||||
fi
|
||||
|
||||
while read i; do a=$(echo $i | cut -d '/' -f 1); b=$(echo $i | sed -rn "s/$a\/$a[-]+(.*)/\1/p"); echo "$a/$b" ;done < <(cat eb-it4i_tmp) > eb-it4i
|
||||
|
||||
echo "|easyconfig-it4i|state|" > compare_result.md
|
||||
echo "| --- | --- |" >> compare_result.md
|
||||
|
||||
INSTALL="FALSE"
|
||||
format="%-80s %30s\n"
|
||||
|
||||
@ -44,15 +53,23 @@ while read x; do
|
||||
|
||||
if [ "$INSTALL" = "OK" ]; then
|
||||
printf "$format" "$x" "${grn}installed${end}"
|
||||
if [ "$1" = "not" ]; then
|
||||
echo "installed from _not_installed ... $x" >> "results/$NAME-installed_from_not_installed.txt"
|
||||
fi
|
||||
INSTALL="FALSE"
|
||||
elif [ "$INSTALL" = "WARNING" ]; then
|
||||
printf "$format" "$x" "${yel}warning${end}"
|
||||
echo "|$x|warning|" >> compare_result.md
|
||||
if [ "$1" = "not" ]; then
|
||||
echo "warning ... $x" >> "results/$NAME-warning-not.txt"
|
||||
else
|
||||
echo "warning ... $x" >> "results/$NAME-warning.txt"
|
||||
fi
|
||||
INSTALL="FALSE"
|
||||
else
|
||||
printf "$format" "$x" "${red}not installed${end}"
|
||||
echo "|$x|not installed|" >> compare_result.md
|
||||
# echo "$x" >> mv
|
||||
if [ ! "$1" = "not" ]; then
|
||||
echo "not installed ... $x" >> "results/$NAME-not_installed.txt"
|
||||
fi
|
||||
INSTALL="FALSE"
|
||||
fi
|
||||
|
||||
|
1385
compare_result.md
1385
compare_result.md
File diff suppressed because it is too large
Load Diff
0
results/SALOMON-installed_from_not_installed.txt
Normal file
0
results/SALOMON-installed_from_not_installed.txt
Normal file
0
results/SALOMON-not_installed.txt
Normal file
0
results/SALOMON-not_installed.txt
Normal file
0
results/SALOMON-warning-not.txt
Normal file
0
results/SALOMON-warning-not.txt
Normal file
10
results/SALOMON-warning.txt
Normal file
10
results/SALOMON-warning.txt
Normal file
@ -0,0 +1,10 @@
|
||||
warning ... CMake/3.6.2-intel-2017.00
|
||||
warning ... GC3Pie/2.4.2
|
||||
warning ... git/2.10.2
|
||||
warning ... git/2.11.0
|
||||
warning ... git/2.8.0-GNU-4.9.3-2.25
|
||||
warning ... git/2.8.0-intel-2017.00
|
||||
warning ... git/2.8.0
|
||||
warning ... imkl/11.3.1.150-iimpi-2016.01-GCC-4.9.3
|
||||
warning ... Mesa/13.0.0-intel-2016a
|
||||
warning ... Tcl/8.6.5
|
Loading…
x
Reference in New Issue
Block a user