From c07c52fcc05785a66d8d7d6e1570f72dbcdc65b5 Mon Sep 17 00:00:00 2001 From: Ralf Jung <jung@mpi-sws.org> Date: Fri, 25 May 2018 08:56:03 +0200 Subject: [PATCH] Use mktemp instead of tempfile mktemp seems to also be available on macOS -- though without `--suffix`. --- Makefile.coq.local | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.coq.local b/Makefile.coq.local index 5b0ccce6a..93954f4a7 100644 --- a/Makefile.coq.local +++ b/Makefile.coq.local @@ -10,7 +10,7 @@ test: $(TESTFILES:.v=.vo) $(TESTFILES:.v=.vo): %.vo: %.v $(VFILES:.v=.vo) $(SHOW)COQC [test] $< $(HIDE)TEST="$$(basename -s .v $<)" && \ - TMPFILE="$$(tempfile -p test- -s "-$$TEST")" && \ + TMPFILE="$$(mktemp)" && \ $(TIMER) $(COQC) $(COQDEBUG) $(TIMING_ARG) $(COQFLAGS) $(COQLIBS) $< $(TIMING_EXTRA) > "$$TMPFILE" && \ (diff --color=auto -u "tests/$$TEST.ref" "$$TMPFILE" || (rm "tests/$$TEST.vo" "$$TMPFILE" && exit 1)) && \ rm "$$TMPFILE" -- GitLab