blob: 04f4fa720b58bbf8dffefcf6134b70cb2f4fcd39 [file] [log] [blame]
Manuel Pégourié-Gonnarda80651c2020-07-16 10:53:13 +02001#!/bin/sh
2
3# pre-commit.sh
4#
Bence Szépkúti1e148272020-08-07 13:07:28 +02005# Copyright The Mbed TLS Contributors
Dave Rodgman7ff79652023-11-03 12:04:52 +00006# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
Manuel Pégourié-Gonnarda80651c2020-07-16 10:53:13 +02007
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