diff options
author | Dave Jones <davej@suse.de> | 2002-04-28 04:55:16 -0700 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2002-04-28 04:55:16 -0700 |
commit | 6194d871ac709c2e3966a3eebb184cbe4dfcbe13 (patch) | |
tree | 3d15ac1292f2097ed159ba1892cd1f9ca62b14d6 /scripts/patch-kernel | |
parent | e149ee4cd47df77b270c529433d4a66ab00a9f57 (diff) |
[PATCH] help texts for patch-kernel
Diffstat (limited to 'scripts/patch-kernel')
-rwxr-xr-x | scripts/patch-kernel | 9 |
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 |