#!/usr/bin/env bash set -ex rocq=$(command -v rocq) # NB on cygwin "$rocq" is a cygwin path (/foo/bar) # but reading files from hash.exe needs windows paths (C:/cygwin/foo/bar) # we avoid the problem by going through stdin rocqhash=$(dune exec --root "$(dirname "$0")"/.. -- etc/tools/hash.exe < "$rocq") rm -rf .wrappers mkdir .wrappers cat > .wrappers/coqc < .wrappers/coqdep < .wrappers/coqdoc < .wrappers/coqpp < .wrappers/META.coq-core <