Commit d13aa16 1 parent 5b0ed77 commit d13aa16 Copy full SHA for d13aa16
File tree 2 files changed +13
-4
lines changed
2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- VERSION=" 0.1"
4
- MILESTONE=master
5
- RPM_RELEASE=" 0.1.$MILESTONE .$( date -u +%Y%m%d%H%M%S) "
3
+ VERSION=" 1.0.0"
4
+ if git describe --exact-match --tags --match " v[0-9]*" > /dev/null 2>&1 ; then
5
+ MILESTONE=
6
+ RPM_RELEASE=" 1"
7
+ else
8
+ MILESTONE=master
9
+ GIT=" $(
10
+ git describe --always --tags --dirty=.dr |
11
+ sed -r ' s/^/git/; s/^[^-]*-//; s/-g/.git/'
12
+ ) "
13
+ RPM_RELEASE=" 0.$MILESTONE .$GIT .$( date -u +%Y%m%d%H%M%S) "
14
+ fi
6
15
7
16
ROLE_NAME=" oVirt.v2v-conversion-host"
8
17
PACKAGE_NAME=" ovirt-ansible-v2v-conversion-host"
Original file line number Diff line number Diff line change @@ -38,5 +38,5 @@ sh build.sh install
38
38
%license LICENSE
39
39
40
40
%changelog
41
- * Thu Mar 22 2018 Tomáš Golembiovský <tgolembi@redhat.com> 0.1 -1
41
+ * Wed Mar 28 2018 Tomáš Golembiovský <tgolembi@redhat.com> 1.0.0 -1
42
42
- Initial release
You can’t perform that action at this time.
0 commit comments