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

Joel Reymont joelr1@REDACTED
Wed Oct 5 15:58:50 CEST 2011


On Oct 5, 2011, at 2:39 PM, Tim Watson wrote:

> If your application is in a subdirectory within the project (i.e., is one of sub_dirs) then you can do this by generating the version you want in a file inside the project subdirectory named priv/vsn.git - then you can put {vsn, git} in your app.src and it will work fine.

A subdirectory is not necessary. 

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?

	Thanks, Joel

--------------------------------------------------------------------------
- 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