Manuel Pégourié-Gonnard | a80651c | 2020-07-16 10:53:13 +0200 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | # pre-commit.sh |
| 4 | # |
Bence Szépkúti | 1e14827 | 2020-08-07 13:07:28 +0200 | [diff] [blame] | 5 | # Copyright The Mbed TLS Contributors |
Dave Rodgman | 7ff7965 | 2023-11-03 12:04:52 +0000 | [diff] [blame] | 6 | # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later |
Manuel Pégourié-Gonnard | a80651c | 2020-07-16 10:53:13 +0200 | [diff] [blame] | 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 | |
| 20 | set -eu |
| 21 | |
| 22 | tests/scripts/check-generated-files.sh |