1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

build system minor fix

This commit is contained in:
Antonin Portelli 2018-09-01 19:54:21 +01:00
parent b52d8eb1e3
commit d85ec3bac2

View File

@ -32,9 +32,13 @@ version-cache:
echo "`git log -n 1 --format=format:"#define GITHASH \\"%H:%d $$a\\"%n" HEAD`" > vertmp;\ echo "`git log -n 1 --format=format:"#define GITHASH \\"%H:%d $$a\\"%n" HEAD`" > vertmp;\
if [ -e version-cache ]; then\ if [ -e version-cache ]; then\
d=`diff vertmp version-cache`;\ d=`diff vertmp version-cache`;\
[ "${d}" != "" ] && mv vertmp version-cache;\ if [ "$${d}" != "" ]; then\
mv vertmp version-cache;\
rm -f Version.h;\
fi;\
else\ else\
mv vertmp version-cache;\ mv vertmp version-cache;\
rm -f Version.h;\
fi;\ fi;\
rm -f vertmp rm -f vertmp