Silent r_version updater

This commit is contained in:
pancake 2016-01-03 02:13:53 +01:00
parent b6a0a939fd
commit 5191493a82

View File

@ -37,15 +37,15 @@ GIT_TIP=$(shell git rev-parse HEAD 2>/dev/null || echo HEAD)
GIT_NOW=$(shell date +%Y-%m-%d) GIT_NOW=$(shell date +%Y-%m-%d)
libr/include/r_version.h: libr/include/r_version.h:
echo "#ifndef R_VERSION_H" > $@.tmp @echo "#ifndef R_VERSION_H" > $@.tmp
echo "#define R_VERSION_H 1" >> $@.tmp @echo "#define R_VERSION_H 1" >> $@.tmp
echo "#define R2_VERSION_COMMIT $(R2VC)" >> $@.tmp @echo "#define R2_VERSION_COMMIT $(R2VC)" >> $@.tmp
echo '#define R2_GITTAP "$(GIT_TAP)"' >> $@.tmp @echo '#define R2_GITTAP "$(GIT_TAP)"' >> $@.tmp
echo '#define R2_GITTIP "$(GIT_TIP)"' >> $@.tmp @echo '#define R2_GITTIP "$(GIT_TIP)"' >> $@.tmp
echo '#define R2_BIRTH "$(GIT_NOW)"' >> $@.tmp @echo '#define R2_BIRTH "$(GIT_NOW)"' >> $@.tmp
echo '#endif' >> $@.tmp @echo '#endif' >> $@.tmp
diff -q $@.tmp $@ || mv -f $@.tmp $@ @cmp -s $@.tmp $@ || (mv -f $@.tmp $@ && echo "Update libr/include/r_version.h")
rm -f $@.tmp @rm -f $@.tmp
plugins.cfg: plugins.cfg:
@if [ ! -e config-user.mk ]; then echo ; \ @if [ ! -e config-user.mk ]; then echo ; \