From f8690d31f74f18ac1dd03d0b0922d2908b9c6807 Mon Sep 17 00:00:00 2001 From: Gaƫtan Gilbert Date: Thu, 4 Apr 2019 14:34:53 +0200 Subject: coq_makefile install target: error if any file is missing --- CHANGES.md | 2 ++ test-suite/coq-makefile/missing-install/run.sh | 17 +++++++++++++++++ tools/CoqMakefile.in | 3 +++ 3 files changed, 22 insertions(+) create mode 100755 test-suite/coq-makefile/missing-install/run.sh diff --git a/CHANGES.md b/CHANGES.md index ce8a787cd1..48d5a7af7e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -227,6 +227,8 @@ Tools `coqc`/`make` as well as printing to stdout, on both python2 and python3. +- coq_makefile's install target now errors if any file to install is missing. + Standard Library - Added lemmas about monotonicity of `N.double` and `N.succ_double`, and about diff --git a/test-suite/coq-makefile/missing-install/run.sh b/test-suite/coq-makefile/missing-install/run.sh new file mode 100755 index 0000000000..4f36fdcb1c --- /dev/null +++ b/test-suite/coq-makefile/missing-install/run.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +. ../template/init.sh + +rm -rf _test; mkdir _test; cd _test + +cat > _CoqProject <&2 echo $$f does not exist; code=1; fi \ + done; exit $$code $(HIDE)for f in $(FILESTOINSTALL); do\ df="`$(COQMKFILE) -destination-of "$$f" $(COQLIBS)`";\ if [ "$$?" != "0" -o -z "$$df" ]; then\ -- cgit v1.2.3