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