Merge branch 'master' into c4fmdemod

c4fmdemod
Jonathan Naylor 2017-04-20 20:49:42 +01:00
commit 6161d298f7
1 changed files with 6 additions and 0 deletions

View File

@ -188,8 +188,14 @@ endif
# Export the current git version if the index file exists, else 000...
GitVersion.h:
ifdef SYSTEMROOT
echo #define GITVERSION "0000000" > $@
else ifdef SystemRoot
echo #define GITVERSION "0000000" > $@
else
ifneq ("$(wildcard .git/index)","")
echo "#define GITVERSION \"$(shell git rev-parse --short HEAD)\"" > $@
else
echo "#define GITVERSION \"0000000\"" > $@
endif
endif