diff --git a/Makefile b/Makefile index fff4f05..793954d 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ SHELL := bash NAME = cephadm DIST ?= el8 BASE := "https://github.com/ceph/ceph" -BRANCH := "octopus" +BRANCH := $(shell git rev-parse --abbrev-ref HEAD | cut -d'-' -f5) VERSION ?= $(shell cat SPECS/cephadm.spec.in | awk '/Version/ { print $$2}') LOCALHASH := $(shell cat SPECS/cephadm.spec.in | awk '/Source0/ { print $$2}' | cut -d'/' -f7) RELEASE ?= $(shell cat SPECS/cephadm.spec.in | awk '/Release/ {print $$2}' | cut -d'%' -f1)