scripts/patch-kernel: use EXTRAVERSION
authorRandy Dunlap <rddunlap@osdl.org>
Mon, 23 Aug 2004 00:39:01 +0000 (02:39 +0200)
committerSam Ravnborg <sam@mars.ravnborg.org>
Mon, 23 Aug 2004 00:39:01 +0000 (02:39 +0200)
commita2c665b04fb8acd2de0216cf38215ef11904fbcd
tree33028ca177ad54936e89ec097fe56550d4f41fd4
parente63a83e02bc310fadedf420061be7d713ee3a320
scripts/patch-kernel: use EXTRAVERSION

Update 'scripts/patch-kernel' to support EXTRAVERSION.
Update usage message text.
Fix some whitespace.
Handle command line arg3 (stop-version) more carefully.
No changes to -ac patch updates.

EXTRAVERSION handling:
any leading '.' and any trailing modifier (beginning with any
punctuation, like "-ac" or "_kexec" or "+mm") are stripped,
trying to get down to just a number.
Then 'patch-kernel' increments EXTRAVERSION as long as it can
apply "patch-V.P.S.X*".  When that file isn't found, it resets
EXTRAVERSION to "" and increments SUBLEVEL (as before this patch).

Works for me.

Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/patch-kernel