Use grep -q instead of grep --quiet to be more portable

This commit is contained in:
Arthur Williams 2021-06-29 00:46:40 -05:00
parent 39d586d7fc
commit 24d35faed2

View File

@ -224,7 +224,7 @@ endif
TCC_GIT_HASH=$(shell git rev-parse > /dev/null 2>&1 && git rev-parse --short HEAD || echo no) TCC_GIT_HASH=$(shell git rev-parse > /dev/null 2>&1 && git rev-parse --short HEAD || echo no)
ifneq ($(TCC_GIT_HASH),no) ifneq ($(TCC_GIT_HASH),no)
MODIFIED = $(shell git diff | grep --quiet +++ && echo "modified ") MODIFIED = $(shell git diff | grep -q +++ && echo "modified ")
$(X)tcc.o : DEFINES += -DTCC_GIT_HASH="\"$(MODIFIED)$(TCC_GIT_HASH)\"" $(X)tcc.o : DEFINES += -DTCC_GIT_HASH="\"$(MODIFIED)$(TCC_GIT_HASH)\""
endif endif