Skip to content

Commit

Permalink
update versioning. fix #119
Browse files Browse the repository at this point in the history
* use git based version like v0.6-78-g109ac21 -- not sure if this plays well with rpm/deb but we'll know soon
* build should be specific for rpm/deb and only rarely be incremented
  • Loading branch information
Dieterbe committed May 23, 2016
1 parent 109ac21 commit 30f6149
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
VERSION=0.0.0
BUILD=1
VERSION=$(shell git describe --tags)


build:
Expand All @@ -17,12 +16,12 @@ deb: build
-s dir \
-t deb \
-n carbon-relay-ng \
-v $(VERSION)-$(BUILD) \
-v $(VERSION)-1 \
-a amd64 \
-m "Dieter Plaetinck <dieter@plaetinck.be>" \
-m "Dieter Plaetinck <dieter@raintank.io>" \
--description "Fast carbon relay+aggregator with admin interfaces for making changes online" \
--license BSD \
--url https://github.com/rcrowley/carbon-relay-ng \
--url https://github.com/graphite-ng/carbon-relay-ng \
-C debian .
rm -rf debian

Expand All @@ -36,12 +35,12 @@ rpm: build
-t rpm \
-n carbon-relay-ng \
-v $(VERSION) \
--epoch $(BUILD) \
--epoch 1 \
-a amd64 \
-m "Dieter Plaetinck <dieter@plaetinck.be>" \
-m "Dieter Plaetinck <dieter@raintank.io>" \
--description "Fast carbon relay+aggregator with admin interfaces for making changes online" \
--license BSD \
--url https://github.com/rcrowley/carbon-relay-ng \
--url https://github.com/graphite-ng/carbon-relay-ng \
-C redhat .
rm -rf redhat

Expand Down

0 comments on commit 30f6149

Please sign in to comment.