Skip to contentSkip to conversation

uml: workaround old problematic sed behaviour [compile-fix, for 2.6.12]

PATCH New [email protected] 1 participant 1 message Apr 24, 2005 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

PATCH 1/6 uml: workaround old problematic sed behaviour [compile-fix, for 2.6.12]

From: Rob Landley <[email protected]>

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.

---

 linux-2.6.12-paolo/arch/um/kernel/Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)
arch/um/kernel/Makefile renamed from arch/um/kernel/Makefile~uml-workaround-sed-behaviour +2 -1
diff -puN arch/um/kernel/Makefile~uml-workaround-sed-behaviour arch/um/kernel/Makefile
@@ -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 '}'                       \
 		  $< > $@

_

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel