1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00: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
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";\
else\
a="no uncommitted changes";\
@ -43,7 +43,7 @@ version-cache:
rm -f vertmp
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