diff --git a/Makefile.coq.local b/Makefile.coq.local index 9eed36a6f5380530ace4634cc910f3f099548f2c..0c66b18a155dcf3d0b7d34a5d778c991ca97dab1 100644 --- a/Makefile.coq.local +++ b/Makefile.coq.local @@ -8,7 +8,7 @@ test: $(TESTFILES:.v=.vo) .PHONY: test COQ_TEST=$(COQTOP) $(COQDEBUG) -batch -test-mode -COQ_OLD=$(shell echo "$(COQ_VERSION)" | egrep "^8\.(7|10)\b" > /dev/null && echo 1) +COQ_OLD=$(shell echo "$(COQ_VERSION)" | egrep "^8\.7\b" -q && echo 1) COQ_MINOR_VERSION=$(shell echo "$(COQ_VERSION)" | egrep '^[0-9]+\.[0-9]+\b' -o) # Can't use pipes because that discards error codes and dash provides no way to control that.