easyconfigs-it4i/compare.sh
Easy Build c64f16e451 # new file: _not_installed/a/ALLPATHS-LG/ALLPATHS-LG-46968-goolf-1.4.10.eb
#	new file:   _not_installed/a/arpack-ng/arpack-ng-3.1.3-ictce-5.3.0-mt.eb
#	new file:   _not_installed/a/arpack-ng/arpack-ng-3.1.3-ictce-5.3.0.eb
#	new file:   _not_installed/a/arpack-ng/arpack-ng-3.1.3-ictce-5.5.0-mt.eb
#	new file:   _not_installed/a/arpack-ng/arpack-ng-3.1.3-ictce-5.5.0.eb
#	new file:   _not_installed/a/arpack-ng/arpack-ng-3.1.5-ictce-7.1.2-mt.eb
#	new file:   _not_installed/a/arpack-ng/arpack-ng-3.1.5-ictce-7.1.2.eb
#	new file:   _not_installed/a/arpack-ng/arpack-ng-3.3.0-GCC-4.9.3.eb
#	new file:   _not_installed/b/beagle-lib/beagle-lib-2.1.2-foss-2016a.eb
#	new file:   _not_installed/b/beagle-lib/beagle-lib-2.1.2-goolf-1.7.20.eb
#	new file:   _not_installed/b/beagle-lib/beagle-lib-20120124-goolf-1.4.10.eb
#	new file:   _not_installed/b/beagle-lib/beagle-lib-20120124-ictce-5.3.0.eb
#	new file:   _not_installed/b/beagle-lib/beagle-lib-20141202-intel-2015a.eb
#	new file:   _not_installed/c/ChIP-Seq/ChIP-Seq-1.5-1-goolf-1.4.10.eb
#	new file:   _not_installed/c/ChIP-Seq/ChIP-Seq-1.5-1-goolf-1.7.20.eb
#	new file:   _not_installed/d/DBD-mysql/DBD-mysql-4.032-intel-2016a-Perl-5.22.2.eb
#	new file:   _not_installed/d/DBD-mysql/DBD-mysql-4.033-intel-2016b-Perl-5.24.0.eb
#	new file:   _not_installed/d/DFT-D3/DFT-D3-3.1.1-intel-2015a.eb
#	new file:   _not_installed/e/ea-utils/ea-utils-27a4809-foss-2016a.eb
#	new file:   _not_installed/e/ea-utils/ea-utils-27a4809-foss-2016b.eb
#	new file:   _not_installed/g/GEM-library/GEM-library-20130406-045632_pre-release-3_Linux-x86_64.eb
#	new file:   _not_installed/g/GMAP-GSNAP/GMAP-GSNAP-2014-01-21-goolf-1.4.10.eb
#	new file:   _not_installed/g/GMAP-GSNAP/GMAP-GSNAP-2014-06-10-goolf-1.4.10.eb
#	new file:   _not_installed/g/GMAP-GSNAP/GMAP-GSNAP-2015-12-31.v2-foss-2015b.eb
#	new file:   _not_installed/g/GMAP-GSNAP/GMAP-GSNAP-2016-05-01-foss-2016a.eb
#	new file:   _not_installed/g/GMAP-GSNAP/GMAP-GSNAP-2016-11-07-foss-2016b.eb
#	new file:   _not_installed/g/git-lfs/git-lfs-1.1.1.eb
#	new file:   _not_installed/i/I-TASSER/I-TASSER-4.0.eb
#	new file:   _not_installed/i/I-TASSER/I-TASSER-4.2.eb
#	new file:   _not_installed/m/MIGRATE-N/MIGRATE-N-4.2.8-foss-2016a.eb
#	new file:   _not_installed/m/MPJ-Express/MPJ-Express-0.44-foss-2016a-Java-1.8.0_92.eb
#	new file:   _not_installed/m/MPJ-Express/MPJ-Express-0.44-goolf-1.4.10-Java-1.7.0_75.eb
#	new file:   _not_installed/n/netCDF-Fortran/netCDF-Fortran-4.2-ictce-6.1.5.eb
#	new file:   _not_installed/p/PARI-GP/PARI-GP-2.7.6-foss-2016a.eb
#	new file:   _not_installed/p/PhyloBayes-MPI/PhyloBayes-MPI-20161021-intel-2017.00.eb
#	new file:   _not_installed/p/Postgres-XL/Postgres-XL-9.5r1-intel-2016a-Python-2.7.11.eb
#	new file:   _not_installed/p/pkg-config/pkg-config-0.27.1-goolf-1.4.10.eb
#	new file:   _not_installed/p/pkg-config/pkg-config-0.27.1-ictce-5.3.0.eb
#	new file:   _not_installed/p/pkg-config/pkg-config-0.27.1-ictce-5.5.0.eb
#	new file:   _not_installed/p/pkg-config/pkg-config-0.27.1-intel-2015a.eb
#	new file:   _not_installed/p/pkg-config/pkg-config-0.28-GCC-4.8.2.eb
#	new file:   _not_installed/p/pkg-config/pkg-config-0.28-GCC-4.9.2.eb
#	new file:   _not_installed/p/pkg-config/pkg-config-0.28-GNU-4.9.3-2.25.eb
#	new file:   _not_installed/p/pkg-config/pkg-config-0.28-ictce-5.5.0.eb
#	new file:   _not_installed/p/pkg-config/pkg-config-0.28-intel-2015a.eb
#	new file:   _not_installed/p/pkg-config/pkg-config-0.29-gimkl-2.11.5.eb
#	new file:   _not_installed/p/pkg-config/pkg-config-0.29-intel-2015a.eb
#	new file:   _not_installed/p/pkg-config/pkg-config-0.29-intel-2015b.eb
#	new file:   _not_installed/p/prompt-toolkit/prompt-toolkit-1.0.3-foss-2016a-Python-2.7.11.eb
#	new file:   _not_installed/p/prompt-toolkit/prompt-toolkit-1.0.3-foss-2016a-Python-3.5.1.eb
#	new file:   _not_installed/p/prompt-toolkit/prompt-toolkit-1.0.6-foss-2016b-Python-2.7.12.eb
#	new file:   _not_installed/p/prompt-toolkit/prompt-toolkit-1.0.6-intel-2016b-Python-2.7.12.eb
#	new file:   _not_installed/p/prompt-toolkit/prompt-toolkit-1.0.6-intel-2016b-Python-3.5.2.eb
#	new file:   _not_installed/p/protobuf-python/protobuf-python-3.0.2-foss-2016a-Python-2.7.11.eb
#	new file:   _not_installed/p/protobuf-python/protobuf-python-3.0.2-foss-2016a-Python-3.5.1.eb
#	new file:   _not_installed/p/protobuf-python/protobuf-python-3.2.0-intel-2016b-Python-2.7.12.eb
#	new file:   _not_installed/p/protobuf-python/protobuf-python-3.2.0-intel-2016b-Python-3.5.2.eb
#	new file:   _not_installed/p/python-dateutil/python-dateutil-2.1-goolf-1.4.10-Python-2.7.3.eb
#	new file:   _not_installed/r/R-bundle-Bioconductor/R-bundle-Bioconductor-3.2-foss-2016a-R-3.2.3.eb
#	new file:   _not_installed/r/R-bundle-Bioconductor/R-bundle-Bioconductor-3.2-intel-2016a-R-3.2.3.eb
#	new file:   _not_installed/s/S-Lang/S-Lang-2.3.0-GCC-4.9.2.eb
#	new file:   _not_installed/s/STAR-Fusion/STAR-Fusion-0.6.0-goolf-1.4.10-Perl-5.16.3.eb
#	new file:   _not_installed/s/Saxon-HE/Saxon-HE-9.7.0.4-Java-1.7.0_79.eb
#	new file:   _not_installed/u/util-linux/util-linux-2.26.1-goolf-1.4.10.eb
#	new file:   _not_installed/u/util-linux/util-linux-2.26.1-intel-2015b.eb
#	new file:   _not_installed/x/xcb-util-image/xcb-util-image-0.4.0-foss-2016a.eb
#	new file:   _not_installed/x/xcb-util-image/xcb-util-image-0.4.0-intel-2015b.eb
#	new file:   _not_installed/x/xcb-util-image/xcb-util-image-0.4.0-intel-2016a.eb
#	new file:   _not_installed/x/xcb-util-keysyms/xcb-util-keysyms-0.4.0-foss-2016a.eb
#	new file:   _not_installed/x/xcb-util-keysyms/xcb-util-keysyms-0.4.0-intel-2016a.eb
#	new file:   _not_installed/x/xcb-util-renderutil/xcb-util-renderutil-0.3.9-foss-2016a.eb
#	new file:   _not_installed/x/xcb-util-renderutil/xcb-util-renderutil-0.3.9-intel-2016a.eb
#	new file:   _not_installed/x/xcb-util-wm/xcb-util-wm-0.4.1-foss-2016a.eb
#	new file:   _not_installed/x/xcb-util-wm/xcb-util-wm-0.4.1-intel-2015b-Python-2.7.11.eb
#	new file:   _not_installed/x/xcb-util-wm/xcb-util-wm-0.4.1-intel-2015b.eb
#	new file:   _not_installed/x/xcb-util-wm/xcb-util-wm-0.4.1-intel-2016a.eb
#	new file:   _not_installed/x/xcb-util/xcb-util-0.4.0-foss-2016a.eb
#	new file:   _not_installed/x/xcb-util/xcb-util-0.4.0-intel-2016a.eb
#	new file:   _not_installed/y/YAML-Syck/YAML-Syck-1.27-goolf-1.4.10-Perl-5.16.3.eb
#	new file:   _not_installed/y/YAML-Syck/YAML-Syck-1.27-ictce-4.1.13-Perl-5.16.3.eb
#	new file:   _not_installed/y/YAML-Syck/YAML-Syck-1.27-ictce-5.3.0-Perl-5.16.3.eb
#	modified:   compare.sh
#	modified:   compare_result.md
#	deleted:    a/ALLPATHS-LG/ALLPATHS-LG-46968-goolf-1.4.10.eb
#	deleted:    a/arpack-ng/arpack-ng-3.1.3-ictce-5.3.0-mt.eb
#	deleted:    a/arpack-ng/arpack-ng-3.1.3-ictce-5.3.0.eb
#	deleted:    a/arpack-ng/arpack-ng-3.1.3-ictce-5.5.0-mt.eb
#	deleted:    a/arpack-ng/arpack-ng-3.1.3-ictce-5.5.0.eb
#	deleted:    a/arpack-ng/arpack-ng-3.1.5-ictce-7.1.2-mt.eb
#	deleted:    a/arpack-ng/arpack-ng-3.1.5-ictce-7.1.2.eb
#	deleted:    a/arpack-ng/arpack-ng-3.3.0-GCC-4.9.3.eb
#	deleted:    b/beagle-lib/beagle-lib-2.1.2-foss-2016a.eb
#	deleted:    b/beagle-lib/beagle-lib-2.1.2-goolf-1.7.20.eb
#	deleted:    b/beagle-lib/beagle-lib-20120124-goolf-1.4.10.eb
#	deleted:    b/beagle-lib/beagle-lib-20120124-ictce-5.3.0.eb
#	deleted:    b/beagle-lib/beagle-lib-20141202-intel-2015a.eb
#	deleted:    c/ChIP-Seq/ChIP-Seq-1.5-1-goolf-1.4.10.eb
#	deleted:    c/ChIP-Seq/ChIP-Seq-1.5-1-goolf-1.7.20.eb
#	deleted:    c/Clustering/clustering-2.6.6.eb
#	deleted:    d/DBD-mysql/DBD-mysql-4.032-intel-2016a-Perl-5.22.2.eb
#	deleted:    d/DBD-mysql/DBD-mysql-4.033-intel-2016b-Perl-5.24.0.eb
#	deleted:    d/DFT-D3/DFT-D3-3.1.1-intel-2015a.eb
#	deleted:    e/ea-utils/ea-utils-27a4809-foss-2016a.eb
#	deleted:    e/ea-utils/ea-utils-27a4809-foss-2016b.eb
#	deleted:    g/GEM-library/GEM-library-20130406-045632_pre-release-3_Linux-x86_64.eb
#	deleted:    g/GMAP-GSNAP/GMAP-GSNAP-2014-01-21-goolf-1.4.10.eb
#	deleted:    g/GMAP-GSNAP/GMAP-GSNAP-2014-06-10-goolf-1.4.10.eb
#	deleted:    g/GMAP-GSNAP/GMAP-GSNAP-2015-12-31.v2-foss-2015b.eb
#	deleted:    g/GMAP-GSNAP/GMAP-GSNAP-2016-05-01-foss-2016a.eb
#	deleted:    g/GMAP-GSNAP/GMAP-GSNAP-2016-11-07-foss-2016b.eb
#	deleted:    g/git-lfs/git-lfs-1.1.1.eb
#	deleted:    i/I-TASSER/I-TASSER-4.0.eb
#	deleted:    i/I-TASSER/I-TASSER-4.2.eb
#	deleted:    m/MIGRATE-N/MIGRATE-N-4.2.8-foss-2016a.eb
#	deleted:    m/MPJ-Express/MPJ-Express-0.44-foss-2016a-Java-1.8.0_92.eb
#	deleted:    m/MPJ-Express/MPJ-Express-0.44-goolf-1.4.10-Java-1.7.0_75.eb
#	deleted:    mv
#	deleted:    n/netCDF-Fortran/netCDF-Fortran-4.2-ictce-6.1.5.eb
#	deleted:    p/PARI-GP/PARI-GP-2.7.6-foss-2016a.eb
#	deleted:    p/PhyloBayes-MPI/PhyloBayes-MPI-20161021-intel-2017.00.eb
#	deleted:    p/Postgres-XL/Postgres-XL-9.5r1-intel-2016a-Python-2.7.11.eb
#	deleted:    p/pkg-config/pkg-config-0.27.1-goolf-1.4.10.eb
#	deleted:    p/pkg-config/pkg-config-0.27.1-ictce-5.3.0.eb
#	deleted:    p/pkg-config/pkg-config-0.27.1-ictce-5.5.0.eb
#	deleted:    p/pkg-config/pkg-config-0.27.1-intel-2015a.eb
#	deleted:    p/pkg-config/pkg-config-0.28-GCC-4.8.2.eb
#	deleted:    p/pkg-config/pkg-config-0.28-GCC-4.9.2.eb
#	deleted:    p/pkg-config/pkg-config-0.28-GNU-4.9.3-2.25.eb
#	deleted:    p/pkg-config/pkg-config-0.28-ictce-5.5.0.eb
#	deleted:    p/pkg-config/pkg-config-0.28-intel-2015a.eb
#	deleted:    p/pkg-config/pkg-config-0.29-gimkl-2.11.5.eb
#	deleted:    p/pkg-config/pkg-config-0.29-intel-2015a.eb
#	deleted:    p/pkg-config/pkg-config-0.29-intel-2015b.eb
#	deleted:    p/prompt-toolkit/prompt-toolkit-1.0.3-foss-2016a-Python-2.7.11.eb
#	deleted:    p/prompt-toolkit/prompt-toolkit-1.0.3-foss-2016a-Python-3.5.1.eb
#	deleted:    p/prompt-toolkit/prompt-toolkit-1.0.6-foss-2016b-Python-2.7.12.eb
#	deleted:    p/prompt-toolkit/prompt-toolkit-1.0.6-intel-2016b-Python-2.7.12.eb
#	deleted:    p/prompt-toolkit/prompt-toolkit-1.0.6-intel-2016b-Python-3.5.2.eb
#	deleted:    p/protobuf-python/protobuf-python-3.0.2-foss-2016a-Python-2.7.11.eb
#	deleted:    p/protobuf-python/protobuf-python-3.0.2-foss-2016a-Python-3.5.1.eb
#	deleted:    p/protobuf-python/protobuf-python-3.2.0-intel-2016b-Python-2.7.12.eb
#	deleted:    p/protobuf-python/protobuf-python-3.2.0-intel-2016b-Python-3.5.2.eb
#	deleted:    p/python-dateutil/python-dateutil-2.1-goolf-1.4.10-Python-2.7.3.eb
#	deleted:    r/R-bundle-Bioconductor/R-bundle-Bioconductor-3.2-foss-2016a-R-3.2.3.eb
#	deleted:    r/R-bundle-Bioconductor/R-bundle-Bioconductor-3.2-intel-2016a-R-3.2.3.eb
#	deleted:    s/S-Lang/S-Lang-2.3.0-GCC-4.9.2.eb
#	deleted:    s/STAR-Fusion/STAR-Fusion-0.6.0-goolf-1.4.10-Perl-5.16.3.eb
#	deleted:    s/Saxon-HE/Saxon-HE-9.7.0.4-Java-1.7.0_79.eb
#	deleted:    u/util-linux/util-linux-2.26.1-goolf-1.4.10.eb
#	deleted:    u/util-linux/util-linux-2.26.1-intel-2015b.eb
#	deleted:    v/VDE/VDE2-2.3.2-GCC-4.4.7-system.eb
#	deleted:    x/Xerces-C++/Xerces-C++-3.1.1-foss-2015a.eb
#	deleted:    x/Xerces-C++/Xerces-C++-3.1.1-intel-2015a.eb
#	deleted:    x/Xerces-C++/Xerces-C++-3.1.2-foss-2015a.eb
#	deleted:    x/Xerces-C++/Xerces-C++-3.1.2-goolf-1.7.20.eb
#	deleted:    x/Xerces-C++/Xerces-C++-3.1.2-intel-2015a.eb
#	deleted:    x/xcb-util-image/xcb-util-image-0.4.0-foss-2016a.eb
#	deleted:    x/xcb-util-image/xcb-util-image-0.4.0-intel-2015b.eb
#	deleted:    x/xcb-util-image/xcb-util-image-0.4.0-intel-2016a.eb
#	deleted:    x/xcb-util-keysyms/xcb-util-keysyms-0.4.0-foss-2016a.eb
#	deleted:    x/xcb-util-keysyms/xcb-util-keysyms-0.4.0-intel-2016a.eb
#	deleted:    x/xcb-util-renderutil/xcb-util-renderutil-0.3.9-foss-2016a.eb
#	deleted:    x/xcb-util-renderutil/xcb-util-renderutil-0.3.9-intel-2016a.eb
#	deleted:    x/xcb-util-wm/xcb-util-wm-0.4.1-foss-2016a.eb
#	deleted:    x/xcb-util-wm/xcb-util-wm-0.4.1-intel-2015b-Python-2.7.11.eb
#	deleted:    x/xcb-util-wm/xcb-util-wm-0.4.1-intel-2015b.eb
#	deleted:    x/xcb-util-wm/xcb-util-wm-0.4.1-intel-2016a.eb
#	deleted:    x/xcb-util/xcb-util-0.4.0-foss-2016a.eb
#	deleted:    x/xcb-util/xcb-util-0.4.0-intel-2016a.eb
#	deleted:    y/YAML-Syck/YAML-Syck-1.27-goolf-1.4.10-Perl-5.16.3.eb
#	deleted:    y/YAML-Syck/YAML-Syck-1.27-ictce-4.1.13-Perl-5.16.3.eb
#	deleted:    y/YAML-Syck/YAML-Syck-1.27-ictce-5.3.0-Perl-5.16.3.eb
2017-03-22 10:34:40 +01:00

56 lines
1.5 KiB
Bash
Executable File

# !/bin/bash
# skript pro kontrolu zda eb předpis, který je v easyconfigs-it4i je nainstalován
printf "\033c"
printf "Prepare data for analyze ...\n"
ml --show_hidden -t av 2>&1 > /dev/null| awk '{print $1 }' | grep -v "/apps/*" > ml_av
find /apps/easybuild/easyconfigs-it4i/ -type f -name "*.eb" | grep -v "_not_installed/*" | cut -d '/' -f 6,7 | sed 's/.eb//' > eb-it4i_tmp
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"
red=$'\e[1;31m'
grn=$'\e[1;32m'
yel=$'\e[1;33m'
blu=$'\e[1;34m'
mag=$'\e[1;35m'
cyn=$'\e[1;36m'
end=$'\e[0m'
while read x; do
while read y; do
if [ "$x" = "$y" ]; then
INSTALL="OK"
break
fi
done < <(cat ml_av)
if [ ! "$INSTALL" = "OK" ]; then
if [ -d "/apps/all/$x" ]; then
INSTALL="WARNING"
fi
fi
if [ "$INSTALL" = "OK" ]; then
printf "$format" "$x" "${grn}installed${end}"
INSTALL="FALSE"
elif [ "$INSTALL" = "WARNING" ]; then
printf "$format" "$x" "${yel}warning${end}"
echo "|$x|warning|" >> compare_result.md
INSTALL="FALSE"
else
printf "$format" "$x" "${red}not installed${end}"
echo "|$x|not installed|" >> compare_result.md
echo "$x" >> mv
INSTALL="FALSE"
fi
done < <(cat eb-it4i)
rm eb-it4i ml_av eb-it4i_tmp