diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-12-13 19:18:30 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-12-13 19:18:30 +0100 |
commit | c36a298c21f1aa5b4e61d2d4740811529175df09 (patch) | |
tree | 67ea7fed85ed947547779762613bc5561e9d7796 /sysdep | |
parent | d807ea087f8d60e25eaef8c10168a40ca6545c57 (diff) |
Use git describe for BIRD version
Based on patch from Pavel Tvrdik
Diffstat (limited to 'sysdep')
-rw-r--r-- | sysdep/config.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sysdep/config.h b/sysdep/config.h index 460cac8b..96e371f8 100644 --- a/sysdep/config.h +++ b/sysdep/config.h @@ -6,8 +6,15 @@ #ifndef _BIRD_CONFIG_H_ #define _BIRD_CONFIG_H_ +#define XSTR2(X) #X +#define XSTR1(X) XSTR2(X) + /* BIRD version */ +#ifdef GIT_LABEL +#define BIRD_VERSION XSTR1(GIT_LABEL) +#else #define BIRD_VERSION "2.0.0" +#endif /* Include parameters determined by configure script */ #include "sysdep/autoconf.h" |