Permalink
Browse files

Removed vsn.mk file

  • Loading branch information...
1 parent 3faf118 commit e71e48543bc883a5080ded1756ec3c328ca9d0dc @saleyn committed Oct 5, 2012
Showing with 2 additions and 5 deletions.
  1. +1 −2 Makefile
  2. +1 −2 rebar.config.script
  3. +0 −1 vsn.mk
View
@@ -1,7 +1,6 @@
# See LICENSE for licensing information.
-include vsn.mk
-
+VSN = $(shell git describe --always --tags --abbrev=0 | sed 's/^v//')
PROJECT = $(notdir $(PWD))
TARBALL = $(PROJECT)-$(VSN)
View
@@ -1,6 +1,5 @@
Arch = erlang:system_info(system_architecture),
-{ok, <<"VSN=", I/binary>>} = file:read_file("vsn.mk"),
-Vsn = binary_to_list(binary:replace(I, <<"\n">>, <<"">>)),
+Vsn = string:strip(os:cmd("git describe --always --tags --abbrev=0 | sed 's/^v//'"), right, $\n),
%% Check for Linux capability API.
Cap = case file:read_file_info("/usr/include/sys/capability.h") of
{ok, _} ->
View
@@ -1 +0,0 @@
-VSN=1.0

0 comments on commit e71e485

Please sign in to comment.