mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-11 04:17:15 +02:00
merging refactor (replacing)
This commit is contained in:
24
updateClientAPI.sh
Executable file
24
updateClientAPI.sh
Executable file
@ -0,0 +1,24 @@
|
||||
API_FILE=$PWD/slsSupportLib/include/versionAPI.h
|
||||
arraylength=3
|
||||
|
||||
LIB_DIR=slsDetectorSoftware
|
||||
RXR_DIR=slsReceiverSoftware
|
||||
GUI_DIR=slsDetectorGui
|
||||
|
||||
declare -a arraydirs=($LIB_DIR $RXR_DIR $GUI_DIR)
|
||||
declare -a arraynames=("APILIB" "APIRECEIVER" "APIGUI")
|
||||
|
||||
for (( i=0; i<${arraylength}; ++i ));
|
||||
do
|
||||
./updateAPIVersion.sh ${arraynames[$i]} ${arraydirs[$i]}
|
||||
done
|
||||
|
||||
#find branch
|
||||
CURR_BRANCH=$(git branch | grep \* | cut -d ' ' -f2)
|
||||
|
||||
#update branch
|
||||
BRANCH=$(cat $API_FILE | grep GITBRANCH | cut -d' ' -f3)
|
||||
sed -i s/$BRANCH/\"$CURR_BRANCH\"/g $API_FILE
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user