2016-10-14 13:15:32 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-10-18 19:00:15 +03:00
|
|
|
set -e
|
|
|
|
|
2016-10-14 13:46:15 +03:00
|
|
|
IS_SNAPSHOT=$1
|
|
|
|
MARKETING_VERSION=$2
|
2016-10-14 13:31:51 +03:00
|
|
|
|
2016-10-14 13:15:32 +03:00
|
|
|
echo "### Setting versions of VimR"
|
|
|
|
|
2016-10-15 10:38:09 +03:00
|
|
|
# bundle version
|
2016-10-14 13:15:32 +03:00
|
|
|
agvtool bump -all
|
|
|
|
|
2016-10-15 10:38:09 +03:00
|
|
|
# marketing version
|
2016-10-15 00:24:29 +03:00
|
|
|
if [ "${IS_SNAPSHOT}" = true ] ; then
|
2016-12-18 13:24:06 +03:00
|
|
|
BUNDLE_VERSION=$(agvtool what-version | sed '2q;d' | sed -E 's/ +(.+)/\1/')
|
|
|
|
MARKETING_VERSION="SNAPSHOT-${BUNDLE_VERSION}"
|
2016-10-14 13:15:32 +03:00
|
|
|
fi
|
2016-10-15 00:55:38 +03:00
|
|
|
|
2016-10-14 13:15:32 +03:00
|
|
|
agvtool new-marketing-version ${MARKETING_VERSION}
|
|
|
|
|
|
|
|
echo "### Set versions of VimR"
|