mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-25 14:35:42 +00:00
Document "check-names.sh -v"
This commit is contained in:
parent
e952fdf2d4
commit
017adc7c9c
|
@ -2,15 +2,21 @@
|
||||||
#
|
#
|
||||||
# This file is part of mbed TLS (https://tls.mbed.org)
|
# This file is part of mbed TLS (https://tls.mbed.org)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015-2016, ARM Limited, All Rights Reserved
|
# Copyright (c) 2015-2019, ARM Limited, All Rights Reserved
|
||||||
#
|
|
||||||
# Purpose
|
|
||||||
#
|
|
||||||
# This script confirms that the naming of all symbols and identifiers in mbed
|
|
||||||
# TLS are consistent with the house style and are also self-consistent.
|
|
||||||
#
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
|
if [ $# -ne 0 ] && [ "$1" = "--help" ]; then
|
||||||
|
cat <<EOF
|
||||||
|
$0 [-v]
|
||||||
|
This script confirms that the naming of all symbols and identifiers in mbed
|
||||||
|
TLS are consistent with the house style and are also self-consistent.
|
||||||
|
|
||||||
|
-v If the script fails unexpectedly, print a command trace.
|
||||||
|
EOF
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
if grep --version|head -n1|grep GNU >/dev/null; then :; else
|
if grep --version|head -n1|grep GNU >/dev/null; then :; else
|
||||||
echo "This script requires GNU grep.">&2
|
echo "This script requires GNU grep.">&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue