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:
parent
da5b0388fb
commit
5605314884
@ -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"
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user