1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-24 19:47:41 +03:00
vimr/bin/set_new_versions.sh
Tae Won Ha 25b2df508b
Temp
2016-10-14 12:31:51 +02:00

18 lines
438 B
Bash
Executable File

#!/bin/bash
MARKETING_VERSION=$1
IS_SNAPSHOT=$2
echo "### Setting versions of VimR"
# ## bundle version
agvtool bump -all
# ## marketing version
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}
echo "### Set versions of VimR"