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:
parent
d85ec3bac2
commit
3ee682f676
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user