Update build branches script
This commit is contained in:
parent
f7d6327d5d
commit
061db5339b
1 changed files with 7 additions and 8 deletions
|
@ -25,14 +25,13 @@ do
|
|||
git diff --exit-code "$BRANCH" "$GIT_ORIGIN_NAME/$BRANCH" --quiet
|
||||
RES_DIFF=$?
|
||||
if [ $RES_DIFF != 0 ]; then
|
||||
echo "Checkouting branch and create build for $BRANCH"
|
||||
## reset all previous changes in working tree
|
||||
git checkout .
|
||||
git reset HEAD --hard
|
||||
git checkout $BRANCH
|
||||
git merge $GIT_ORIGIN_NAME/$BRANCH
|
||||
|
||||
sed -e "s/\(APP_DESCRIPTION.*=.*\"\).*\(\".*\)/\1$SHORT_DATE $BRANCH\2/g" $VERSION_FILE > ${VERSION_FILE}.bak
|
||||
echo "Checkouting branch and create build for $BRANCH"
|
||||
## reset all previous changes in working tree
|
||||
git checkout .
|
||||
git reset HEAD --hard
|
||||
git checkout $BRANCH
|
||||
git reset $GIT_ORIGIN_NAME/$BRANCH --hard
|
||||
sed -e "s/\(APP_DESCRIPTION.*=.*\"\).*\(\".*\)/\1$SHORT_DATE $BRANCH\2/g" $VERSION_FILE > ${VERSION_FILE}.bak
|
||||
mv ${VERSION_FILE}.bak ${VERSION_FILE}
|
||||
|
||||
## build map creator
|
||||
|
|
Loading…
Reference in a new issue