updated all makefiles

This commit is contained in:
mazzol_a
2025-05-15 17:08:27 +02:00
committed by Dhanya Thattil
parent d450db5911
commit f1fc7ae0ec
10 changed files with 20 additions and 93 deletions

18
slsDetectorServers/compileEigerServer.sh Normal file → Executable file
View File

@ -3,21 +3,27 @@
deterror="OK"
dir="eigerDetectorServer"
file="${dir}_developer"
branch=""
usage="\nUsage: compileAllServers.sh [update_api(opt)]. \n\t update_api if true updates the api to version in VERSION file"
update_api=false
target=clean
# arguments
if [ $# -eq 1 ]; then
branch+=$1
#echo "with branch $branch"
update_api=$1
if $update_api ; then
target=version
echo "updating api to $(cat ../VERSION)"
fi
elif [ ! $# -eq 0 ]; then
echo -e "Only one optional argument allowed for branch."
echo -e "Only one optional argument allowed for update_api."
return -1
fi
echo -e "Compiling $dir [$file]"
cd $dir
make clean
if make version API_BRANCH=$branch; then
if make $target; then
deterror="OK"
else
deterror="FAIL"