1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-26 23:36:08 +03:00

GH-220 Improve script

This commit is contained in:
Tae Won Ha 2016-10-15 09:47:11 +02:00
parent f6e186b7b1
commit 9421ae1f4d
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -2,9 +2,16 @@
BRANCH=$1 BRANCH=$1
COMPOUND_VERSION=$2 COMPOUND_VERSION=$2
IS_SNAPSHOT=$3
cp build/Release/appcast* . if [ "${IS_SNAPSHOT}" = true ] ; then
cp ./build/Release/appcast_snapshot.xml .
else
cp ./build/Release/appcast.xml .
cp ./build/Release/appcast.xml ./appcast_snapshot.xml
fi
echo "### Commiting and pushing appcast" echo "### Commiting and pushing appcast"
git commit -am "Bump appcast to ${COMPOUND_VERSION}" git commit -am "Bump appcast to ${COMPOUND_VERSION}"
git push origin HEAD:"${BRANCH}" git push origin HEAD:"${BRANCH}"