1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-28 08:13:17 +03:00
vimr/bin/set_snapshot_date.sh

9 lines
263 B
Bash
Raw Normal View History

#!/bin/bash
NEW_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)/")
agvtool new-marketing-version $NEW_MARKETING_VERSION
echo $NEW_MARKETING_VERSION