mbed TLS Build
tests/scripts/check-generated-files.sh@1:1a219dea6cb5, 2019-06-04 (annotated)
- Committer:
- williequesada
- Date:
- Tue Jun 04 16:03:38 2019 +0000
- Revision:
- 1:1a219dea6cb5
- Parent:
- 0:cdf462088d13
compartir a Pablo
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
markrad | 0:cdf462088d13 | 1 | #!/bin/sh |
markrad | 0:cdf462088d13 | 2 | |
markrad | 0:cdf462088d13 | 3 | # check if generated files are up-to-date |
markrad | 0:cdf462088d13 | 4 | |
markrad | 0:cdf462088d13 | 5 | set -eu |
markrad | 0:cdf462088d13 | 6 | |
markrad | 0:cdf462088d13 | 7 | if [ -d library -a -d include -a -d tests ]; then :; else |
markrad | 0:cdf462088d13 | 8 | echo "Must be run from mbed TLS root" >&2 |
markrad | 0:cdf462088d13 | 9 | exit 1 |
markrad | 0:cdf462088d13 | 10 | fi |
markrad | 0:cdf462088d13 | 11 | |
markrad | 0:cdf462088d13 | 12 | check() |
markrad | 0:cdf462088d13 | 13 | { |
markrad | 0:cdf462088d13 | 14 | FILE=$1 |
markrad | 0:cdf462088d13 | 15 | SCRIPT=$2 |
markrad | 0:cdf462088d13 | 16 | |
markrad | 0:cdf462088d13 | 17 | cp $FILE $FILE.bak |
markrad | 0:cdf462088d13 | 18 | $SCRIPT |
markrad | 0:cdf462088d13 | 19 | diff $FILE $FILE.bak |
markrad | 0:cdf462088d13 | 20 | mv $FILE.bak $FILE |
markrad | 0:cdf462088d13 | 21 | } |
markrad | 0:cdf462088d13 | 22 | |
markrad | 0:cdf462088d13 | 23 | check library/error.c scripts/generate_errors.pl |
markrad | 0:cdf462088d13 | 24 | check library/version_features.c scripts/generate_features.pl |