Hans Ulrich Niedermann wrote:
Matthias Hopf wrote:
Did you think of packaging git_version.h when doing 'make dist'?
Yes, but we will want to distinguish
a) a build directly from a git worktree of commit 12345678 b) a build from a dist tarball generated from commit 12345678
In case a), we can programmatically determine whether the local source contains changes in addition to 12345678 and note them.
In case b), we have no way of finding out whether/what has changed locally, so we need to note that in the message somehow.
I do have code for b), but it is too ugly, too fragile and too large to commit just yet.
I think the following addresses all that: http://radeonhd.lauft.net/patches/ndim-git-version/ or $ git pull \ http://radeonhd.lauft.net/xf86-video-radeonhd.git/ \ ndim-git-version 1. Ship git_version.h in dist tarball, marked as being part of dist tarball. 2. If git_version.h exists and if git_version.sh finds no git repo (.git dir), keep existing git_version.h. 3. Have git_version.h print special message when building from dist tarball. Please pull from ndim-git-version and push to master and/or initial-randr if you like it. -- Hans Ulrich Niedermann