Permalink
Browse files

Added versioning for releases.

  • Loading branch information...
1 parent 9ef31c5 commit 41784c385da70cd06f7ef91a6af7725c3aaf187c @Licenser Licenser committed Feb 5, 2013
Showing with 3 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +2 −1 Makefile
View
@@ -1,3 +1,4 @@
+*.version
apps/snarl/src/snarl_version.hrl
rel/pkg/packlist
rel/pkg/*.tgz
View
@@ -5,7 +5,8 @@ REBAR = $(shell pwd)/rebar
all: deps compile
version:
- echo "-define(VERSION, <<\"$(shell git symbolic-ref HEAD 2> /dev/null | cut -b 12-)-$(shell git log --pretty=format:'%h, %ad' -1)\">>)." > apps/snarl/src/snarl_version.hrl
+ echo "$(shell git symbolic-ref HEAD 2> /dev/null | cut -b 12-)-$(shell git log --pretty=format:'%h, %ad' -1)" > snarl.version
+ echo "-define(VERSION, <<\"$(shell cat snarl.version)\">>)." > apps/snarl/src/snarl_version.hrl
compile: version
$(REBAR) compile

0 comments on commit 41784c3

Please sign in to comment.