tools: add usage information to checkconfig.sh

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2014-02-16 23:54:16 +00:00 committed by Karel Zak
parent e130ce53ce
commit 052a6cf285
1 changed files with 11 additions and 0 deletions

View File

@ -16,6 +16,17 @@ die() {
exit 1
}
usage() {
echo "Usage:"
echo " $0 <top_srcdir> <srcfile> [<srcfile> ...]"
echo "Example:"
echo " find . -name '*.c' | xargs $0 \$(git rev-parse --show-toplevel)"
}
if [ $# -eq 0 ]; then
usage
exit 1
fi
srcdir=$1
config="$srcdir/config.h.in"