Document "check-names.sh -v"

This commit is contained in:
Gilles Peskine 2019-05-22 18:22:45 +02:00
parent e952fdf2d4
commit 017adc7c9c

View file

@ -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