1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-09 21:50:45 +01:00

more Version.h fine tuning

This commit is contained in:
Antonin Portelli 2018-09-01 19:58:16 +01:00
parent d85ec3bac2
commit 3ee682f676

View File

@ -24,7 +24,7 @@ endif
all: version-cache all: version-cache
version-cache: version-cache:
if [ `git status --porcelain | wc -l` -gt 0 ]; then\ if [ `git status --porcelain | grep -v '??' | wc -l` -gt 0 ]; then\
a="uncommited changes";\ a="uncommited changes";\
else\ else\
a="no uncommitted changes";\ a="no uncommitted changes";\
@ -43,7 +43,7 @@ version-cache:
rm -f vertmp rm -f vertmp
Version.h: Version.h:
echo "`git log -n 1 --format=format:"#define GITHASH \\"%H:%d $$a\\"%n" HEAD`" > Version.h cp version-cache Version.h
.PHONY: version-cache .PHONY: version-cache