forked from mbaltaks/vomitorium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtag-release
executable file
·33 lines (26 loc) · 858 Bytes
/
tag-release
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
# Created by Michael Baltaks
# Submit customer release script: mark a customer release from a pair of release candidate packages
# - tag the release commit
# - bump the visible version
# - commit the visible version change (so all new builds are candidates for the next version)
# - push tags
# Don't allow using unset vars (-u)
set -o nounset
# Exit on error (-e)
set -o errexit
version=`agvtool mvers -terse1`
buildnumber=`agvtool vers -terse`
if [ $# -lt 1 ]; then
script_name="$(basename $0)"
echo "usage: ${script_name} new_app_version (current version is $version)" >&2
exit 1
fi
# Tag the release
git tag -m "Release $version build $buildnumber" -a "Release-${version}"
# Prepare for the next release
mvers="$1"
agvtool new-marketing-version "$mvers"
git commit -a -m "Start dev cycle for version $mvers"
#git push
git push --tags