From 8e2bd17704bd61c906549e5ea996de4dc21768d3 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Mon, 10 Aug 2020 12:04:31 +0200 Subject: [PATCH] updated client script --- slsSupportLib/include/versionAPI.h | 4 ++-- updateClientAPI.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/slsSupportLib/include/versionAPI.h b/slsSupportLib/include/versionAPI.h index 8d20ef85b..c96ec2620 100644 --- a/slsSupportLib/include/versionAPI.h +++ b/slsSupportLib/include/versionAPI.h @@ -1,5 +1,5 @@ /** API versions */ -#define GITBRANCH "developer" +#define GITBRANCH "developer" #define APICTB 0x200805 #define APIGOTTHARD 0x200805 #define APIGOTTHARD2 0x200805 @@ -9,4 +9,4 @@ #define APIEIGER 0x200805 #define APILIB 0x200810 #define APIRECEIVER 0x200810 -#define APIGUI 0x200803 +#define APIGUI 0x200804 diff --git a/updateClientAPI.sh b/updateClientAPI.sh index 49e8be65a..084f43b5f 100755 --- a/updateClientAPI.sh +++ b/updateClientAPI.sh @@ -14,10 +14,10 @@ do done #find branch -CURR_BRANCH=$(git branch | grep \* | cut -d ' ' -f2) +CURR_BRANCH=$(git rev-parse --abbrev-ref HEAD) #update branch -BRANCH=$(cat $API_FILE | grep GITBRANCH | cut -d' ' -f3) +BRANCH=$(cat $API_FILE | grep GITBRANCH | awk '{print $3}' ) sed -i s/$BRANCH/\"$CURR_BRANCH\"/g $API_FILE