mirror of https://github.com/ceph/ceph-ansible.git
Makefile: strip "v" from RPM versions
Prior to this change, all RPMs would have a Version field that started with "v", for example "ceph-ansible-v2.0.0-163.g2c98b1d.el7" Strip the "v" out in these cases, so that the version is simply a number.pull/1177/head
parent
2c98b1d70f
commit
cda441595b
2
Makefile
2
Makefile
|
@ -2,7 +2,7 @@
|
||||||
# Try "make" (for SRPMS) or "make rpm"
|
# Try "make" (for SRPMS) or "make rpm"
|
||||||
|
|
||||||
NAME = ceph-ansible
|
NAME = ceph-ansible
|
||||||
VERSION := $(shell git describe --tags --abbrev=0)
|
VERSION := $(shell git describe --tags --abbrev=0 | sed 's/^v//')
|
||||||
COMMIT := $(shell git rev-parse HEAD)
|
COMMIT := $(shell git rev-parse HEAD)
|
||||||
SHORTCOMMIT := $(shell echo $(COMMIT) | cut -c1-7)
|
SHORTCOMMIT := $(shell echo $(COMMIT) | cut -c1-7)
|
||||||
RELEASE := $(shell git describe --tags --match 'v*' \
|
RELEASE := $(shell git describe --tags --match 'v*' \
|
||||||
|
|
Loading…
Reference in New Issue