mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-08 12:18:42 +00:00
Use git describe for BIRD version
Based on patch from Pavel Tvrdik
This commit is contained in:
parent
d807ea087f
commit
c36a298c21
@ -21,6 +21,11 @@ INSTALL=@INSTALL@
|
|||||||
INSTALL_PROGRAM=@INSTALL_PROGRAM@
|
INSTALL_PROGRAM=@INSTALL_PROGRAM@
|
||||||
INSTALL_DATA=@INSTALL_DATA@
|
INSTALL_DATA=@INSTALL_DATA@
|
||||||
|
|
||||||
|
git-label:=$(strip $(shell git describe --always --dirty=-x 2>/dev/null))
|
||||||
|
ifneq ($(git-label),)
|
||||||
|
CFLAGS += -DGIT_LABEL="$(git-label)"
|
||||||
|
endif
|
||||||
|
|
||||||
client=$(addprefix $(exedir)/,@CLIENT@)
|
client=$(addprefix $(exedir)/,@CLIENT@)
|
||||||
daemon=$(exedir)/bird
|
daemon=$(exedir)/bird
|
||||||
protocols=@protocols@
|
protocols=@protocols@
|
||||||
|
@ -6,8 +6,15 @@
|
|||||||
#ifndef _BIRD_CONFIG_H_
|
#ifndef _BIRD_CONFIG_H_
|
||||||
#define _BIRD_CONFIG_H_
|
#define _BIRD_CONFIG_H_
|
||||||
|
|
||||||
|
#define XSTR2(X) #X
|
||||||
|
#define XSTR1(X) XSTR2(X)
|
||||||
|
|
||||||
/* BIRD version */
|
/* BIRD version */
|
||||||
|
#ifdef GIT_LABEL
|
||||||
|
#define BIRD_VERSION XSTR1(GIT_LABEL)
|
||||||
|
#else
|
||||||
#define BIRD_VERSION "2.0.0"
|
#define BIRD_VERSION "2.0.0"
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Include parameters determined by configure script */
|
/* Include parameters determined by configure script */
|
||||||
#include "sysdep/autoconf.h"
|
#include "sysdep/autoconf.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user