]> git.proxmox.com Git - mirror_kronosnet.git/commit - configure.ac
Support for git archive stored tags
authorJan Friesse <jfriesse@redhat.com>
Tue, 4 Sep 2018 15:51:21 +0000 (17:51 +0200)
committerJan Friesse <jfriesse@redhat.com>
Tue, 4 Sep 2018 16:09:24 +0000 (18:09 +0200)
commitfa89260223705b074cf442d2d2a58ffa423acf23
tree749d8789cff5eacf7c35346ac4bbb90a2bfa8ddb
parent6f179e234953c460f04ec173244d4f1ab28c19bd
Support for git archive stored tags

Attempt to solve problem with git archive generated tarballs
(used for example by github when release is downloaded) which are no
longer git tree and (in contrast to officially released tarballs) also
doesn't contain .tarball-version file so git-version-gen script simply
cannot obtain valid version info.

Solution is based on using gitattributes which is instructs git to
replace string in the .gitarchivever file by known ref names.
git-version-gen is enhanced to support this file and tries to parse
any string which looks like "tag: v[0-9][^,)]*". If such string
is found it's used as a version. This file is used as a last attempt and
other methods (.tarball-version, git abbrev) have precedence.

Based on idea stated by Jan Pokorný <jpokorny@redhat.com>.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
.gitarchivever [new file with mode: 0644]
.gitattributes
build-aux/git-version-gen
configure.ac