Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
labs
BIRD Internet Routing Daemon
Commits
c36a298c
Commit
c36a298c
authored
Dec 13, 2017
by
Ondřej Zajíček
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use git describe for BIRD version
Based on patch from Pavel Tvrdik
parent
d807ea08
Pipeline
#28549
passed with stages
in 5 minutes and 40 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
Makefile.in
Makefile.in
+5
-0
sysdep/config.h
sysdep/config.h
+7
-0
No files found.
Makefile.in
View file @
c36a298c
...
...
@@ -21,6 +21,11 @@ INSTALL=@INSTALL@
INSTALL_PROGRAM
=
@INSTALL_PROGRAM@
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@
)
daemon
=
$(exedir)
/bird
protocols
=
@protocols@
...
...
sysdep/config.h
View file @
c36a298c
...
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment