1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-10-27 18:34:58 +03:00

GH-220 Improve script

This commit is contained in:
Tae Won Ha 2016-10-14 23:24:29 +02:00
parent da5b0388fb
commit 5605314884
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44
3 changed files with 2 additions and 5 deletions

View File

@ -20,9 +20,6 @@ export PATH=/usr/local/bin:$PATH
BUNDLE_VERSION=$(agvtool what-version | sed '2q;d' | sed -E 's/ +(.+)/\1/')
MARKETING_VERSION=$(agvtool what-marketing-version | tail -n 1 | sed -E 's/.*of "(.*)" in.*/\1/')
COMPOUND_VERSION="v${MARKETING_VERSION}-${BUNDLE_VERSION}"
if [ "${IS_SNAPSHOT}" = true ] ; then
COMPOUND_VERSION="v${MARKETING_VERSION}-${BUNDLE_VERSION}"
fi
TAG=${COMPOUND_VERSION}
VIMR_FILE_NAME="VimR-${COMPOUND_VERSION}.tar.bz2"

View File

@ -5,7 +5,7 @@ COMPOUND_VERSION=$2
IS_SNAPSHOT=$3
TAG_NAME=$COMPOUND_VERSION
if [ ${IS_SNAPSHOT} = true ] ; then
if [ "${IS_SNAPSHOT}" = true ] ; then
TAG_NAME="snapshot/${COMPOUND_VERSION}"
fi

View File

@ -9,7 +9,7 @@ echo "### Setting versions of VimR"
agvtool bump -all
# ## marketing version
if [ ${IS_SNAPSHOT} = true ] ; then
if [ "${IS_SNAPSHOT}" = true ] ; then
MARKETING_VERSION=$(agvtool what-marketing-version | tail -n 1 | sed -E 's/.*of "(.*)" in.*/\1/' | sed -E "s/(.*)-SNAPSHOT-.*/\1-SNAPSHOT-$(date +%Y%m%d.%H%M)/")
fi
agvtool new-marketing-version ${MARKETING_VERSION}