diff options
author | Sami Kerola | 2014-02-17 00:54:16 +0100 |
---|---|---|
committer | Karel Zak | 2014-02-17 14:04:35 +0100 |
commit | 052a6cf285d315d68ea120387533340c8f28a6c8 (patch) | |
tree | 9c631157399cb909efa1af035497f23e67f0d138 /tools | |
parent | tests: avoid executing dirname(1) command (diff) | |
download | kernel-qcow2-util-linux-052a6cf285d315d68ea120387533340c8f28a6c8.tar.gz kernel-qcow2-util-linux-052a6cf285d315d68ea120387533340c8f28a6c8.tar.xz kernel-qcow2-util-linux-052a6cf285d315d68ea120387533340c8f28a6c8.zip |
tools: add usage information to checkconfig.sh
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/checkconfig.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/checkconfig.sh b/tools/checkconfig.sh index 91f7b1c05..5f2063ad4 100755 --- a/tools/checkconfig.sh +++ b/tools/checkconfig.sh @@ -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" |