Revision c36a298c

View differences:

Makefile.in
21 21
INSTALL_PROGRAM=@INSTALL_PROGRAM@
22 22
INSTALL_DATA=@INSTALL_DATA@
23 23

  
24
git-label:=$(strip $(shell git describe --always --dirty=-x 2>/dev/null))
25
ifneq ($(git-label),)
26
        CFLAGS += -DGIT_LABEL="$(git-label)"
27
endif
28

  
24 29
client=$(addprefix $(exedir)/,@CLIENT@)
25 30
daemon=$(exedir)/bird
26 31
protocols=@protocols@
sysdep/config.h
6 6
#ifndef _BIRD_CONFIG_H_
7 7
#define _BIRD_CONFIG_H_
8 8

  
9
#define XSTR2(X) #X
10
#define XSTR1(X) XSTR2(X)
11

  
9 12
/* BIRD version */
13
#ifdef GIT_LABEL
14
#define BIRD_VERSION XSTR1(GIT_LABEL)
15
#else
10 16
#define BIRD_VERSION "2.0.0"
17
#endif
11 18

  
12 19
/* Include parameters determined by configure script */
13 20
#include "sysdep/autoconf.h"

Also available in: Unified diff