Easy Build 7be1d79add modified: develop
new file:   duplicate
	new file:   i/isort/isort-4.2.15-Python-2.7.13-base.eb
	modified:   it4i
	new file:   p/pylint/pylint-1.7.2-Python-2.7.13-base.eb
	modified:   test.sh
2017-09-08 12:22:34 +02:00

26 lines
999 B
Bash
Executable File

# !/bin/bash
printf "\033c"
DIR=`pwd`
format="| MD5 | %-32s | Name | %-80s | \n"
echo -n " Preparing IT4I .......... ["
for a in `find /apps/easybuild/easyconfigs-develop/easybuild/easyconfigs/ -type f -name *.eb`; do md5sum $a | grep -v "__archive__" | sed 's| .||' | cut -d '/' -f 1,8 | tr "/" ";" | sed 's|apps||'; done > develop && echo -e "\e[32m OK \e[0m]" || echo -e "\e[31mFAIL\e[0m]"
echo -n " Preparing develop ....... ["
for a in `find . -type f -name *.eb`; do md5sum $a | grep -v "__archive__" | sed 's| .||' | cut -d '/' -f 1,4 | tr "/" ";" | sed 's|apps||'; done > it4i && echo -e "\e[32m OK \e[0m]" || echo -e "\e[31mFAIL\e[0m]"
for x in `cat develop`; do
X=$(echo $x | cut -d ';' -f 1)
Xname=$(echo $x | cut -d ';' -f 2)
for y in `cat it4i | cut -d ';' -f 1`; do
if [ "$X" = "$y" ]; then
printf "$format" "${red}$X${end}" "${red}$Xname${end}"
echo "$x" >> duplicate
break
fi
done
printf "$format" "$X" "$Xname"
done