mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 15:20:02 +02:00
31 lines
497 B
Bash
31 lines
497 B
Bash
declare -a det=("eigerDetectorServer")
|
|
|
|
declare -a deterror=("OK" "OK" "OK" "OK")
|
|
|
|
for ((i=0;i<${#det[@]};++i))
|
|
do
|
|
dir=${det[i]}
|
|
file="${det[i]}_developer"
|
|
echo -e "Compiling $dir [$file]"
|
|
cd $dir
|
|
make clean
|
|
if make version; then
|
|
deterror[i]="OK"
|
|
else
|
|
deterror[i]="FAIL"
|
|
fi
|
|
|
|
mv bin/$dir bin/$file
|
|
git add -f bin/$file
|
|
cp bin/$file /tftpboot/
|
|
cd ..
|
|
echo -e "\n\n"
|
|
done
|
|
|
|
echo -e "Results:"
|
|
for ((i=0;i<${#det[@]};++i))
|
|
do
|
|
printf "%s\t\t= %s\n" "${det[i]}" "${deterror[i]}"
|
|
done
|
|
|