Commit graph

5 commits

Author SHA1 Message Date
Colin Guthrie
36f7a40829 build-sys: Include the .version file in the distribution tarball
As per the comments in git-version-gen, the .version file that is
typically generated automatically during build should be included
in the tarball, so generate it in the dist-hook.

This fixes a problem when running make distcheck which uses a read-only
source folder and thus cannot generate the $top_srcdir/.version as
part of it's build process (it uses a _build folder which is r/w)
and thus cannot be built.
2010-12-05 15:59:13 +00:00
Colin Guthrie
ba2e5f4442 build-sys: Add some smarts to version extraction from git tags.
When we are dealing with a tag against a commit with other tags applied,
then favour the first tag, not the last one. This allows us to tag a release
as e.g. v1.0, v1.1-dev and v2.0-dev and get a version of 1.0 rather than the
newer tags.

This also removes support for git versions that do not accept
the --match argument as we also now make use of the --contains arg
which was added at the same time (I think)

Additionally, the v variable is reset just incase it is already exported
in the shell for some reason.
2010-12-04 17:34:03 +00:00
Lennart Poettering
b4b1f0375c build-sys: teacch git versioning script to not kill - in version strings 2009-06-23 17:13:29 +02:00
Lennart Poettering
5651c03920 build-sys: drop compat with old git versions so that tarballs for -test1 style evrsions are properly created 2009-06-23 16:27:38 +02:00
Marc-André Lureau
ebe22ad0c3 build: generate git tarball using git describe 2009-04-23 19:49:12 +02:00