From: Sami Kerola Date: Sun, 16 Feb 2014 23:54:16 +0000 (+0000) Subject: tools: add usage information to checkconfig.sh X-Git-Tag: v2.25-rc1~592 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=052a6cf285d315d68ea120387533340c8f28a6c8;p=thirdparty%2Futil-linux.git tools: add usage information to checkconfig.sh Signed-off-by: Sami Kerola --- diff --git a/tools/checkconfig.sh b/tools/checkconfig.sh index 91f7b1c05c..5f2063ad49 100755 --- a/tools/checkconfig.sh +++ b/tools/checkconfig.sh @@ -16,6 +16,17 @@ die() { exit 1 } +usage() { + echo "Usage:" + echo " $0 [ ...]" + 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"