mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 21:07:13 +02:00
updating client api, tag updating script
This commit is contained in:
@ -13,12 +13,19 @@ do
|
||||
./updateAPIVersion.sh ${arraynames[$i]} ${arraydirs[$i]}
|
||||
done
|
||||
|
||||
#use tag
|
||||
if [ $# -eq 0 ]; then
|
||||
declare -a TAG=$(git rev-parse --abbrev-ref HEAD)
|
||||
#find branch
|
||||
CURR_BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
||||
else
|
||||
declare -a TAG=${1}
|
||||
fi
|
||||
#CURR_BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
||||
|
||||
#update branch
|
||||
BRANCH=$(cat $API_FILE | grep GITBRANCH | awk '{print $3}' )
|
||||
sed -i s/$BRANCH/\"$CURR_BRANCH\"/g $API_FILE
|
||||
#sed -i s/$BRANCH/\"$CURR_BRANCH\"/g $API_FILE
|
||||
sed -i s/$BRANCH/\"$TAG\"/g $API_FILE
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user