1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-25 23:02:35 +03:00

GH-220 Improve script

This commit is contained in:
Tae Won Ha 2016-10-14 23:55:38 +02:00
parent 465f6f20a3
commit d776f51361
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -10,8 +10,9 @@ 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)/")
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)/")
fi
agvtool new-marketing-version ${MARKETING_VERSION}
echo "### Set versions of VimR"