1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-25 06:06:21 +03:00
vimr/bin/set_new_versions.sh
2016-12-18 11:24:14 +01:00

23 lines
415 B
Bash
Executable File

#!/bin/bash
set -e
set -x
IS_SNAPSHOT=$1
MARKETING_VERSION=$2
echo "### Setting versions of VimR"
# bundle version
agvtool bump -all
# marketing version
if [ "${IS_SNAPSHOT}" = true ] ; then
BUNDLE_VERSION=$(agvtool what-version | sed '2q;d' | sed -E 's/ +(.+)/\1/')
MARKETING_VERSION="SNAPSHOT-${BUNDLE_VERSION}"
fi
agvtool new-marketing-version ${MARKETING_VERSION}
echo "### Set versions of VimR"