]> git.puffer.fish Git - matthieu/frr.git/commit
build: include git info
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 27 Nov 2012 01:34:56 +0000 (01:34 +0000)
committerDavid Lamparter <equinox@opensourcerouting.org>
Wed, 12 Dec 2012 14:34:37 +0000 (15:34 +0100)
commit0be793e674c8b076f0e8bf327257f15803480f49
tree28c42a679265d25ea41f4265232e2bcc167b1f49
parent324ed1f87aedf30a45aea951edb2e717c5f9b7fb
build: include git info

If enabled with --with-pkg-gitversion on ./configure, this will append
git version strings and branch information at the following places:
 - overall version number: 0.99.21-g0123456
 - login motd and show version: tag information + git id + branches

Sample output:
  Hello, this is Quagga (version 0.99.21-g14b49ad-dirty).
  Copyright 1996-2005 Kunihiro Ishiguro, et al.

  This is a git build of quagga_0_99_21_release-106-g14b49ad-dirty
  Associated branch(es):
local:master

[v2]: fix build without gitinfo (add "else" branch)
[v2]: fix for repos without any tags (different git describe output)
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
configure.ac
lib/.gitignore
lib/Makefile.am
lib/command.c
lib/gitversion.pl [new file with mode: 0644]
lib/version.h.in