lkml.org 
[lkml]   [1999]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH] EXTRAVERSION Patch fuzz farm
As usual, I forgot the patch. O:)

Attached now.

Simon-
---
On Wed, 6 Jan 1999, Simon Kirby wrote:

> If you haven't seen this trick before, it's just a simple way of taking
> advantage of the fact that "patch" can apply with fuzz when the context
> matches and using it to combine version tags. If it isn't obvious, try
> making several patches to the "Patches" file this patch creates -- make
> each version have a different string in the top slot, as if several
> different patches used the same slot. You should be able to then apply
> and unapply any of the patches in any order and patch should find the
> first available empty one if applying or the one that it was applied to
> previously if reversing.
>
> I'd find this addition quite helpful. I have so many of my own patches
> that I apply to so many different kernels for many different servers, so
> it's currently hard to keep track.
>
> The "Patches" file this creates contains 32 "slots", so it will not work
> if more than 32 tag-adding patches are applied. This is easy to fix --
> just copy some more blank slots. It doesn't look the prettiest, but it
> ends up working quite well from what I've tried.
>
> Simon-
diff -urN linux.orig/Makefile linux/Makefile
--- linux.orig/Makefile Mon Jan 4 15:08:27 1999
+++ linux/Makefile Wed Jan 6 19:45:27 1999
@@ -3,6 +3,10 @@
SUBLEVEL = 0
EXTRAVERSION =-pre5

+ifeq (Patches,$(wildcard Patches))
+include Patches
+endif
+
ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/)

.EXPORT_ALL_VARIABLES:
diff -urN linux.orig/Patches linux/Patches
--- linux.orig/Patches Wed Dec 31 16:00:00 1969
+++ linux/Patches Wed Jan 6 20:15:56 1999
@@ -0,0 +1,272 @@
+# EXTRAVERSION Patch fuzz farm
+
+# Simply add your patch version string inside any empty quotes below.
+
+# A context or unified style diff (with at most 3 lines of context)
+# should apply the string to any of the string slots (with fuzz if
+# necessary), so that patches which add, change, or remove their tag
+# in EXTRAVERSION can be applied and removed in any order.
+
+# Example:
+# EXTRAVERSION:=${EXTRAVERSION}"-moo_patch"
+
+# -- Start of farm --
+
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+#-
+# -
+# -
+# -
+EXTRAVERSION:=${EXTRAVERSION}""
+# -
+# -
+# -
+
+# -- End of farm --
\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.048 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site