2016-10-14 13:15:32 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
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-10-15 00:55:38 +03:00
|
|
|
MARKETING_VERSION=$(agvtool what-marketing-version | tail -n 1 | sed -E 's/.*of "(.*)" in.*/\1/' | sed -E "s/^([0-9]+)\.([0-9]+)\.([0-9]+).*/\1.\2.\3-SNAPSHOT-$(date +%Y%m%d.%H%M)/")
|
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"
|