1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-28 11:35:35 +03:00
vimr/bin/set_new_versions.sh

33 lines
611 B
Bash
Raw Normal View History

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"
2017-12-03 11:59:15 +03:00
pushd VimR
2016-10-15 10:38:09 +03:00
# bundle version
2016-10-14 13:15:32 +03:00
agvtool bump -all
2017-12-20 21:50:01 +03:00
BUNDLE_VERSION=$(agvtool what-version | sed '2q;d' | sed -E 's/ +(.+)/\1/')
2016-10-14 13:15:32 +03:00
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
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}
2017-12-03 11:59:15 +03:00
popd
for proj in 'MsgPackRpc' 'NvimMsgPack' 'NvimView'; do
pushd ${proj}
agvtool new-version -all ${BUNDLE_VERSION}
agvtool new-marketing-version ${MARKETING_VERSION}
popd
done
2016-10-14 13:15:32 +03:00
echo "### Set versions of VimR"