preserves/git-hooks/pre-commit

23 lines
742 B
Bash
Executable File

#!/bin/sh
set -e
exec 1>&2
# Ensure that various copies of schema.prs are in fact identical.
cmp schema/schema.prs implementations/racket/preserves/preserves-schema/schema.prs
# Likewise for samples.pr
cmp tests/samples.pr implementations/racket/preserves/preserves/tests/samples.pr
# https://gitlab.com/preserves/preserves/-/issues/30
#
# So it turns out that Racket's git-checkout mechanism pays attention
# to portions of the tree outside the package of interest, which is
# totally fair enough!
#
# But it means we can't use updir-containing symlinks anywhere in the
# repository if we want to have a Racket-installable package as well.
#
# So I've cloned path.bin, too.
cmp path/path.bin implementations/rust/preserves-path/path.bin