Pavel Sanda <sa...@lyx.org> writes: | 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
Why not just genereate a small C file? ... ...but putting it directly into the executable might actually be a good idea. | 2) keyword substitution (this was easy in svn but far more tricky via | gitattributes) never liked them. | 3) some hell with post-commit hooks This is not a good solution methings. > | Pavel > -- Lgb