mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-21 09:08:00 +02:00
updated all makefiles
This commit is contained in:
18
slsDetectorServers/compileEigerServer.sh
Normal file → Executable file
18
slsDetectorServers/compileEigerServer.sh
Normal file → Executable 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"
|
||||
|
Reference in New Issue
Block a user