1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-09-20 09:15:38 +01: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;\
if [ -e version-cache ]; then\
d=`diff vertmp version-cache`;\
[ "${d}" != "" ] && mv vertmp version-cache;\
if [ "$${d}" != "" ]; then\
mv vertmp version-cache;\
rm -f Version.h;\
fi;\
else\
mv vertmp version-cache;\
rm -f Version.h;\
fi;\
rm -f vertmp