[PATCH] uml: workaround old problematic sed behaviour
authorRob Landley <rob@landley.net>
Sun, 1 May 2005 15:58:54 +0000 (08:58 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 1 May 2005 15:58:54 +0000 (08:58 -0700)
Old versions of sed from 1998 (predating the first release of gcc 2.95, but
still in use by debian stable) don't understand the single-line version of the
sed append command.  Since newer versions of sed still understand the...
ahem, "vintage" form of the command, change our code to use that.

Signed-off-by: Rob Landley <rob@landley.net>
Acked-by: Ian McDonald <imcdnzl@gmail.com>
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/um/kernel/Makefile

index dc796c1bf39ecf793cb4b32f926146b45e99c21b..280d3000111b624f8d9f8ff39647281283375cd2 100644 (file)
@@ -53,6 +53,7 @@ quiet_cmd_quote2 = QUOTE   $@
       cmd_quote2 = sed -e '/CONFIG/{'          \
                  -e 's/"CONFIG"\;/""/'        \
                  -e 'r $(obj)/config.tmp'     \
-                 -e 'a""\;'                   \
+                 -e 'a \'                     \
+                 -e '""\;'                    \
                  -e '}'                       \
                  $< > $@