lkml.org 
[lkml]   [2002]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subjectpatch-kernel script usage help
Date

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/

\
 
 \ /
  Last update: 2005-03-22 13:24    [W:0.062 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site