Skip to content

Commit

Permalink
Merge pull request #1177 from ceph/makefile-version-detection
Browse files Browse the repository at this point in the history
Makefile: strip "v" from RPM versions, and improve version detection
  • Loading branch information
andrewschoen authored Dec 12, 2016
2 parents 2c98b1d + 20e7bad commit 297d9ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Try "make" (for SRPMS) or "make rpm"

NAME = ceph-ansible
VERSION := $(shell git describe --tags --abbrev=0)
VERSION := $(shell git describe --tags --abbrev=0 --match 'v*' | sed 's/^v//')
COMMIT := $(shell git rev-parse HEAD)
SHORTCOMMIT := $(shell echo $(COMMIT) | cut -c1-7)
RELEASE := $(shell git describe --tags --match 'v*' \
Expand Down

0 comments on commit 297d9ff

Please sign in to comment.