tools: add usage information to checkconfig.sh
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
e130ce53ce
commit
052a6cf285
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue