patch-kernel script usage help

Damjan Lango (damjan.lango@hermes.si)
Thu, 7 Mar 2002 19:42:09 +0100 (MET)


Hi,

Would you consider applying this patch that adds a little usage help
to the patch-kernel script if the Makefile isn't found or if it is
given -h or --help options:

ciao
Damjan

diff -u patch-kernel-orig patch-kernel
--- patch-kernel-orig Tue Feb 26 11:15:53 2002
+++ patch-kernel Tue Feb 26 11:31:42 2002
@@ -46,6 +46,15 @@
patchdir=${2-.}
stopvers=${3-imnotaversion}

+if [ "$1" = -h -o "$1" = --help -o ! -r "$sourcedir/Makefile" ]; then
+cat << USAGE
+usage: patch-kernel [-h] [ sourcedir [ patchdir [ stopversion ] [ -acxx ] ] ]
+ The source directory defaults to /usr/src/linux, and
+ the patch directory defaults to the current directory.
+USAGE
+exit 1
+fi
+
# See if we have any -ac options
for PARM in $*
do

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/