summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorDave Jones <davej@suse.de>2002-04-28 04:55:16 -0700
committerJaroslav Kysela <perex@suse.cz>2002-04-28 04:55:16 -0700
commit6194d871ac709c2e3966a3eebb184cbe4dfcbe13 (patch)
tree3d15ac1292f2097ed159ba1892cd1f9ca62b14d6 /scripts/patch-kernel
parente149ee4cd47df77b270c529433d4a66ab00a9f57 (diff)
[PATCH] help texts for patch-kernel
Diffstat (limited to 'scripts/patch-kernel')
-rwxr-xr-xscripts/patch-kernel9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/patch-kernel b/scripts/patch-kernel
index edc3d1ec4000..5d4628cfd600 100755
--- a/scripts/patch-kernel
+++ b/scripts/patch-kernel
@@ -46,6 +46,15 @@ sourcedir=${1-/usr/src/linux}
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