Remove "release-" from displayed git version.
Also make sure that version_git.h is only written to if the "git describe" command succeeds.
This commit is contained in:
parent
120e0567cb
commit
c46bdbde18
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ sbin_PROGRAMS = tincd tinc sptps_test sptps_keypair
|
|||
.PHONY: version.c version_git.h
|
||||
version_git.h:
|
||||
echo >$@
|
||||
-GIT_DESCRIPTION="`cd $(@D) && git describe`" && echo "#define GIT_DESCRIPTION \"$$GIT_DESCRIPTION\"" >$@
|
||||
-git describe && echo '#define GIT_DESCRIPTION "'`git describe | sed 's/release-//'`'"' >$@
|
||||
version.c: version_git.h
|
||||
|
||||
if LINUX
|
||||
|
|
Loading…
Reference in a new issue