mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 15:47:22 +00:00
build: fix minimal mixup in gitinfo suffix
the original version of this had issues with tagless repositories; to fix that I removed the "-g" part from one of the regexes. I then failed to add those 2 characters back, leading to version numbers like "0.99.220123456" instead of "0.99.22-ga123456". Let's put the "-g" back... Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
b58c90807c
commit
4a014580ff
@ -6,7 +6,7 @@ chdir $dir || die "$dir: $!\n";
|
||||
|
||||
my $gitdesc = `git describe --always --dirty || echo -- \"0-gUNKNOWN\"`;
|
||||
chomp $gitdesc;
|
||||
my $gitsuffix = ($gitdesc =~ /([0-9a-fA-F]{7}(-dirty)?)$/) ? $1 : "-gUNKNOWN";
|
||||
my $gitsuffix = ($gitdesc =~ /([0-9a-fA-F]{7}(-dirty)?)$/) ? "-g$1" : "-gUNKNOWN";
|
||||
|
||||
printf STDERR "git suffix: %s\n", $gitsuffix;
|
||||
printf "#define GIT_SUFFIX \"%s\"\n", $gitsuffix;
|
||||
|
Loading…
Reference in New Issue
Block a user