[erlang-questions] customizing the rebar-generated .app file

Joel Reymont <>
Wed Oct 5 16:29:12 CEST 2011


rebar is being too clever here. 

Suppose you are using git and are in the top level of the project when building, as you should be. 

rebar will default the version to "git describe --always --tags `git log -n 1 --pretty=format:%h .`".

rebar will not let you override this version string.

On Oct 5, 2011, at 2:58 PM, Joel Reymont wrote:

> How does rebar come up with the final version number using vsn.git, though? 
> 
> To wit:
> 
> cat priv/vsn.git 
> 0eaae0a
> 
> grep vsn ebin/openpoker.app
> {vsn,"v0.1-111-g0eaae0a"},
> 
> Where do 0.1 and 111 come from?

--------------------------------------------------------------------------
- for hire: mac osx device driver ninja, kernel extensions and usb drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------




More information about the erlang-questions mailing list