#!/bin/sh # Report whether this clone and its development container are ready to use # and, if they are not, print what remains to be set up. Run each time a # tool attaches to the container. See `Help/dev/devcontainer.rst`. set -u cd "$(dirname "$0")/.." # Check that development setup is up-to-date, the way our `pre-commit` hook # does. `Utilities/SetupForDevelopment.sh` is interactive, so the container # cannot run it on the developer's behalf. eval "$(grep '^SetupForDevelopment_VERSION=' Utilities/SetupForDevelopment.sh)" setup_done=$(git config --get hooks.SetupForDevelopment || echo 0) if test "$setup_done" -lt "${SetupForDevelopment_VERSION:-0}"; then cat <