Jean-Marc Lasgouttes wrote: > What I do not know is where to put such code so that it is always up to > date. This should replace the date for development releases.
1) linker time, something along the lines LDFLAGS += --defsym __GITSHA=$$(git -1 log blablabla)) and in the code extern char __GITSHA 2) keyword substitution (this was easy in svn but far more tricky via gitattributes) 3) some hell with post-commit hooks Pavel
