[lttng-dev] [PATCH] Add a git version information in LTTng versions compiled from git sources

Brosseau, Yannick yannick.brosseau at gmail.com
Thu Mar 14 00:34:24 EDT 2013


> One thing I'm not sure about is that currently, the version.h needs to
> be versioned but perhaps should be in the .gitignore file to only save
> the "original" version file in the repository. There could be another
> solution if you think it's better : generating the version.h file with
> the bash script at first run. In this case, I think the version.sh shell
> script should perhaps be a better solution.

For that part, you should probably have a version.h.in or something
similar that is the template and the version.h that is generated.

A make dist should probably generate a version.h without the git
version information.



More information about the lttng-dev mailing list