1#!/bin/sh 2 3# pre-commit.sh 4# 5# Copyright The Mbed TLS Contributors 6# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 7 8# Purpose 9# 10# This script does quick sanity checks before commiting: 11# - check that generated files are up-to-date. 12# 13# It is meant to be called as a git pre-commit hook, see README.md. 14# 15# From the git sample pre-commit hook: 16# Called by "git commit" with no arguments. The hook should 17# exit with non-zero status after issuing an appropriate message if 18# it wants to stop the commit. 19 20set -eu 21 22tests/scripts/check-generated-files.sh 23